Commit 6b8c8c40 authored by Antti Palosaari's avatar Antti Palosaari Committed by Mauro Carvalho Chehab

[media] dvb_usb_v2: rename device_init/device_exit to probe/disconnect

Signed-off-by: default avatarAntti Palosaari <crope@iki.fi>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent a177c72b
...@@ -350,9 +350,9 @@ struct dvb_usb_device { ...@@ -350,9 +350,9 @@ struct dvb_usb_device {
void *priv; void *priv;
}; };
extern int dvb_usbv2_device_init(struct usb_interface *, extern int dvb_usbv2_probe(struct usb_interface *,
const struct usb_device_id *); const struct usb_device_id *);
extern void dvb_usbv2_device_exit(struct usb_interface *); extern void dvb_usbv2_disconnect(struct usb_interface *);
/* the generic read/write method for device control */ /* the generic read/write method for device control */
extern int dvb_usbv2_generic_rw(struct dvb_usb_device *, u8 *, u16, u8 *, u16, extern int dvb_usbv2_generic_rw(struct dvb_usb_device *, u8 *, u16, u8 *, u16,
......
...@@ -342,7 +342,7 @@ static void dvb_usbv2_init_work(struct work_struct *work) ...@@ -342,7 +342,7 @@ static void dvb_usbv2_init_work(struct work_struct *work)
return; return;
} }
int dvb_usbv2_device_init(struct usb_interface *intf, int dvb_usbv2_probe(struct usb_interface *intf,
const struct usb_device_id *id) const struct usb_device_id *id)
{ {
int ret; int ret;
...@@ -389,10 +389,9 @@ int dvb_usbv2_device_init(struct usb_interface *intf, ...@@ -389,10 +389,9 @@ int dvb_usbv2_device_init(struct usb_interface *intf,
pr_debug("%s: failed=%d\n", __func__, ret); pr_debug("%s: failed=%d\n", __func__, ret);
return ret; return ret;
} }
EXPORT_SYMBOL(dvb_usbv2_probe);
EXPORT_SYMBOL(dvb_usbv2_device_init); void dvb_usbv2_disconnect(struct usb_interface *intf)
void dvb_usbv2_device_exit(struct usb_interface *intf)
{ {
struct dvb_usb_device *d = usb_get_intfdata(intf); struct dvb_usb_device *d = usb_get_intfdata(intf);
const char *name = "generic DVB-USB module"; const char *name = "generic DVB-USB module";
...@@ -416,7 +415,7 @@ void dvb_usbv2_device_exit(struct usb_interface *intf) ...@@ -416,7 +415,7 @@ void dvb_usbv2_device_exit(struct usb_interface *intf)
pr_info("%s: '%s' successfully deinitialized and disconnected\n", pr_info("%s: '%s' successfully deinitialized and disconnected\n",
KBUILD_MODNAME, name); KBUILD_MODNAME, name);
} }
EXPORT_SYMBOL(dvb_usbv2_device_exit); EXPORT_SYMBOL(dvb_usbv2_disconnect);
MODULE_VERSION("1.0"); MODULE_VERSION("1.0");
MODULE_AUTHOR("Patrick Boettcher <patrick.boettcher@desy.de>"); MODULE_AUTHOR("Patrick Boettcher <patrick.boettcher@desy.de>");
......
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