diff options
-rw-r--r-- | drivers/media/common/siano/smsdvb-main.c | 2 | ||||
-rw-r--r-- | drivers/media/usb/dvb-usb-v2/dvb_usb_core.c | 4 | ||||
-rw-r--r-- | drivers/media/usb/dvb-usb/dvb-usb-dvb.c | 2 |
3 files changed, 1 insertions, 7 deletions
diff --git a/drivers/media/common/siano/smsdvb-main.c b/drivers/media/common/siano/smsdvb-main.c index 387db145d37e..c739725ca7ee 100644 --- a/drivers/media/common/siano/smsdvb-main.c +++ b/drivers/media/common/siano/smsdvb-main.c | |||
@@ -611,9 +611,9 @@ static int smsdvb_onresponse(void *context, struct smscore_buffer_t *cb) | |||
611 | 611 | ||
612 | static void smsdvb_media_device_unregister(struct smsdvb_client_t *client) | 612 | static void smsdvb_media_device_unregister(struct smsdvb_client_t *client) |
613 | { | 613 | { |
614 | #ifdef CONFIG_MEDIA_CONTROLLER_DVB | ||
614 | struct smscore_device_t *coredev = client->coredev; | 615 | struct smscore_device_t *coredev = client->coredev; |
615 | 616 | ||
616 | #ifdef CONFIG_MEDIA_CONTROLLER_DVB | ||
617 | if (!coredev->media_dev) | 617 | if (!coredev->media_dev) |
618 | return; | 618 | return; |
619 | media_device_unregister(coredev->media_dev); | 619 | media_device_unregister(coredev->media_dev); |
diff --git a/drivers/media/usb/dvb-usb-v2/dvb_usb_core.c b/drivers/media/usb/dvb-usb-v2/dvb_usb_core.c index 08a3cd1c8b44..8bd08ba4f869 100644 --- a/drivers/media/usb/dvb-usb-v2/dvb_usb_core.c +++ b/drivers/media/usb/dvb-usb-v2/dvb_usb_core.c | |||
@@ -467,9 +467,7 @@ static int dvb_usbv2_adapter_dvb_init(struct dvb_usb_adapter *adap) | |||
467 | 467 | ||
468 | adap->dvb_adap.priv = adap; | 468 | adap->dvb_adap.priv = adap; |
469 | 469 | ||
470 | #ifdef CONFIG_MEDIA_CONTROLLER_DVB | ||
471 | dvb_usbv2_media_device_register(adap); | 470 | dvb_usbv2_media_device_register(adap); |
472 | #endif | ||
473 | 471 | ||
474 | if (d->props->read_mac_address) { | 472 | if (d->props->read_mac_address) { |
475 | ret = d->props->read_mac_address(adap, | 473 | ret = d->props->read_mac_address(adap, |
@@ -528,8 +526,6 @@ err_dvb_register_adapter: | |||
528 | 526 | ||
529 | static int dvb_usbv2_adapter_dvb_exit(struct dvb_usb_adapter *adap) | 527 | static int dvb_usbv2_adapter_dvb_exit(struct dvb_usb_adapter *adap) |
530 | { | 528 | { |
531 | struct dvb_usb_device *d = adap_to_d(adap); | ||
532 | |||
533 | dev_dbg(&adap_to_d(adap)->udev->dev, "%s: adap=%d\n", __func__, | 529 | dev_dbg(&adap_to_d(adap)->udev->dev, "%s: adap=%d\n", __func__, |
534 | adap->id); | 530 | adap->id); |
535 | 531 | ||
diff --git a/drivers/media/usb/dvb-usb/dvb-usb-dvb.c b/drivers/media/usb/dvb-usb/dvb-usb-dvb.c index 6c9f5ecf949c..980d976960d9 100644 --- a/drivers/media/usb/dvb-usb/dvb-usb-dvb.c +++ b/drivers/media/usb/dvb-usb/dvb-usb-dvb.c | |||
@@ -153,9 +153,7 @@ int dvb_usb_adapter_dvb_init(struct dvb_usb_adapter *adap, short *adapter_nums) | |||
153 | } | 153 | } |
154 | adap->dvb_adap.priv = adap; | 154 | adap->dvb_adap.priv = adap; |
155 | 155 | ||
156 | #ifdef CONFIG_MEDIA_CONTROLLER_DVB | ||
157 | dvb_usb_media_device_register(adap); | 156 | dvb_usb_media_device_register(adap); |
158 | #endif | ||
159 | 157 | ||
160 | if (adap->dev->props.read_mac_address) { | 158 | if (adap->dev->props.read_mac_address) { |
161 | if (adap->dev->props.read_mac_address(adap->dev,adap->dvb_adap.proposed_mac) == 0) | 159 | if (adap->dev->props.read_mac_address(adap->dev,adap->dvb_adap.proposed_mac) == 0) |