Commit 69a3d212 authored by Johan Hovold's avatar Johan Hovold Committed by Greg Kroah-Hartman

USB: serial: rename port release

Rename port_release so that all usb_serial_port functions have a common
prefix.
Signed-off-by: default avatarJohan Hovold <jhovold@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent a4a83100
...@@ -565,7 +565,7 @@ static void kill_traffic(struct usb_serial_port *port) ...@@ -565,7 +565,7 @@ static void kill_traffic(struct usb_serial_port *port)
usb_kill_urb(port->interrupt_out_urb); usb_kill_urb(port->interrupt_out_urb);
} }
static void port_release(struct device *dev) static void usb_serial_port_release(struct device *dev)
{ {
struct usb_serial_port *port = to_usb_serial_port(dev); struct usb_serial_port *port = to_usb_serial_port(dev);
int i; int i;
...@@ -888,7 +888,7 @@ static int usb_serial_probe(struct usb_interface *interface, ...@@ -888,7 +888,7 @@ static int usb_serial_probe(struct usb_interface *interface,
port->dev.parent = &interface->dev; port->dev.parent = &interface->dev;
port->dev.driver = NULL; port->dev.driver = NULL;
port->dev.bus = &usb_serial_bus_type; port->dev.bus = &usb_serial_bus_type;
port->dev.release = &port_release; port->dev.release = &usb_serial_port_release;
device_initialize(&port->dev); device_initialize(&port->dev);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment