diff options
author | Marco Gittler <g.marco@freenet.de> | 2007-06-28 09:10:00 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2007-07-18 13:24:23 -0400 |
commit | d06cdbe59068a143ff2de2474fea62923cb7026f (patch) | |
tree | cf54cd6965fb2292b17c22cfd0bd568560a030f9 /drivers/media | |
parent | 8218b0b2caecf4af55742e12e9986c15605bb197 (diff) |
V4L/DVB (5795): Fix: remove unused struct that could avoiding load the firmware
The dvb_usb_device* d is not used anymore and can be removed.
Signed-off-by: Marco Gittler <g.marco@freenet.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media')
-rw-r--r-- | drivers/media/dvb/dvb-usb/opera1.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/drivers/media/dvb/dvb-usb/opera1.c b/drivers/media/dvb/dvb-usb/opera1.c index ee6bf29223ff..cdb02218ca6a 100644 --- a/drivers/media/dvb/dvb-usb/opera1.c +++ b/drivers/media/dvb/dvb-usb/opera1.c | |||
@@ -534,18 +534,16 @@ static struct dvb_usb_device_properties opera1_properties = { | |||
534 | static int opera1_probe(struct usb_interface *intf, | 534 | static int opera1_probe(struct usb_interface *intf, |
535 | const struct usb_device_id *id) | 535 | const struct usb_device_id *id) |
536 | { | 536 | { |
537 | struct dvb_usb_device *d; | ||
538 | struct usb_device *udev = interface_to_usbdev(intf); | 537 | struct usb_device *udev = interface_to_usbdev(intf); |
539 | 538 | ||
540 | if (udev->descriptor.idProduct == USB_PID_OPERA1_WARM && | 539 | if (udev->descriptor.idProduct == USB_PID_OPERA1_WARM && |
541 | udev->descriptor.idVendor == USB_VID_OPERA1 && | 540 | udev->descriptor.idVendor == USB_VID_OPERA1 && |
542 | (d == NULL | 541 | opera1_xilinx_load_firmware(udev, "dvb-usb-opera1-fpga.fw") != 0 |
543 | || opera1_xilinx_load_firmware(udev, "dvb-usb-opera1-fpga.fw") != 0) | 542 | ) { |
544 | ) { | ||
545 | return -EINVAL; | 543 | return -EINVAL; |
546 | } | 544 | } |
547 | 545 | ||
548 | if (dvb_usb_device_init(intf, &opera1_properties, THIS_MODULE, &d) != 0) | 546 | if (dvb_usb_device_init(intf, &opera1_properties, THIS_MODULE, NULL) != 0) |
549 | return -EINVAL; | 547 | return -EINVAL; |
550 | return 0; | 548 | return 0; |
551 | } | 549 | } |