[media] dvb_usb_v2: remove one parameter from dvb_usbv2_device_init()

Users should use new .init() callback instead.

Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:
Antti Palosaari 2012-05-23 12:34:45 -03:00 committed by Mauro Carvalho Chehab
parent dc78693706
commit 1bf325db6b
2 changed files with 2 additions and 8 deletions

View File

@ -462,7 +462,7 @@ struct dvb_usb_device {
extern int dvb_usbv2_device_init(struct usb_interface *,
struct dvb_usb_device_properties *,
struct module *, struct dvb_usb_device **,
struct module *,
short *adapter_nums);
extern void dvb_usbv2_device_exit(struct usb_interface *);

View File

@ -235,7 +235,7 @@ int dvb_usb_device_power_ctrl(struct dvb_usb_device *d, int onoff)
*/
int dvb_usbv2_device_init(struct usb_interface *intf,
struct dvb_usb_device_properties *props,
struct module *owner, struct dvb_usb_device **du,
struct module *owner,
short *adapter_nums)
{
struct usb_device *udev = interface_to_usbdev(intf);
@ -244,9 +244,6 @@ int dvb_usbv2_device_init(struct usb_interface *intf,
int ret = -ENOMEM, cold = 0;
if (du != NULL)
*du = NULL;
if ((desc = dvb_usb_find_device(udev, props, &cold)) == NULL) {
deb_err("something went very wrong, device was not found in current device list - let's see what comes next.\n");
return -ENODEV;
@ -273,9 +270,6 @@ int dvb_usbv2_device_init(struct usb_interface *intf,
usb_set_intfdata(intf, d);
if (du != NULL)
*du = d;
ret = dvb_usb_init(d, adapter_nums);
if (ret == 0)