mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-04 05:37:36 +00:00
[media] siano: avoid a linkedit error if !MC
If the media controller (MC) is not enabled, it will compile fine, but will fail at the linkedition: ERROR: "media_device_unregister" [drivers/media/usb/siano/smsusb.ko] undefined! Reported-by: kbuild test robot <fengguang.wu@intel.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
This commit is contained in:
parent
89a2c1d60a
commit
f704eab5b6
1 changed files with 2 additions and 0 deletions
|
@ -440,7 +440,9 @@ static int smsusb_init_device(struct usb_interface *intf, int board_id)
|
||||||
if (rc < 0) {
|
if (rc < 0) {
|
||||||
pr_err("smscore_register_device(...) failed, rc %d\n", rc);
|
pr_err("smscore_register_device(...) failed, rc %d\n", rc);
|
||||||
smsusb_term_device(intf);
|
smsusb_term_device(intf);
|
||||||
|
#ifdef CONFIG_MEDIA_CONTROLLER_DVB
|
||||||
media_device_unregister(mdev);
|
media_device_unregister(mdev);
|
||||||
|
#endif
|
||||||
kfree(mdev);
|
kfree(mdev);
|
||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue