aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media')
-rw-r--r--drivers/media/dvb/dvb-usb/opera1.c8
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 = {
534static int opera1_probe(struct usb_interface *intf, 534static 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}