diff options
author | Mauro Carvalho Chehab <mchehab@redhat.com> | 2012-11-07 05:09:08 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2012-11-07 05:09:08 -0500 |
commit | 2c4e11b7c15af70580625657a154ea7ea70b8c76 (patch) | |
tree | 2369c7d134659992fccc8bb09e02932307d7cf5d /drivers | |
parent | 68620bdd10c319fd292ea442130793eb2f2ab293 (diff) |
[media] siano: fix RC compilation
As reported by Antti and by Stephen:
drivers/built-in.o: In function `sms_ir_event':
/home/david/checkouts/linux/drivers/media/common/siano/smsir.c:48: undefined reference to `ir_raw_event_store'
/home/david/checkouts/linux/drivers/media/common/siano/smsir.c:50: undefined reference to `ir_raw_event_handle'
drivers/built-in.o: In function `sms_ir_init':
/home/david/checkouts/linux/drivers/media/common/siano/smsir.c:56: undefined reference to `smscore_get_board_id'
/home/david/checkouts/linux/drivers/media/common/siano/smsir.c:60: undefined reference to `rc_allocate_device'
/home/david/checkouts/linux/drivers/media/common/siano/smsir.c:72: undefined reference to `sms_get_board'
/home/david/checkouts/linux/drivers/media/common/siano/smsir.c:92: undefined reference to `sms_get_board'
/home/david/checkouts/linux/drivers/media/common/siano/smsir.c:97: undefined reference to `rc_register_device'
/home/david/checkouts/linux/drivers/media/common/siano/smsir.c:100: undefined reference to `rc_free_device'
drivers/built-in.o: In function `sms_ir_exit':
/home/david/checkouts/linux/drivers/media/common/siano/smsir.c:111: undefined reference to `rc_unregister_device'
make: *** [vmlinux] Error 1
Caused by commit fdd1eeb49d36 "[media] siano: allow compiling it without RC support"
And it happens when CONFIG_SMS_SIANO_RC=y and CONFIG_RC_CORE=m .
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Reported-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/media/common/siano/Kconfig | 1 | ||||
-rw-r--r-- | drivers/media/common/siano/Makefile | 5 | ||||
-rw-r--r-- | drivers/media/mmc/siano/Kconfig | 2 | ||||
-rw-r--r-- | drivers/media/usb/siano/Kconfig | 2 |
4 files changed, 7 insertions, 3 deletions
diff --git a/drivers/media/common/siano/Kconfig b/drivers/media/common/siano/Kconfig index 3cb7823ab31b..68f0f604678e 100644 --- a/drivers/media/common/siano/Kconfig +++ b/drivers/media/common/siano/Kconfig | |||
@@ -5,6 +5,7 @@ | |||
5 | config SMS_SIANO_MDTV | 5 | config SMS_SIANO_MDTV |
6 | tristate | 6 | tristate |
7 | depends on DVB_CORE && HAS_DMA | 7 | depends on DVB_CORE && HAS_DMA |
8 | depends on !RC_CORE || RC_CORE | ||
8 | depends on SMS_USB_DRV || SMS_SDIO_DRV | 9 | depends on SMS_USB_DRV || SMS_SDIO_DRV |
9 | default y | 10 | default y |
10 | 11 | ||
diff --git a/drivers/media/common/siano/Makefile b/drivers/media/common/siano/Makefile index 0e6f5e927137..9e7fdf24a6b7 100644 --- a/drivers/media/common/siano/Makefile +++ b/drivers/media/common/siano/Makefile | |||
@@ -1,7 +1,10 @@ | |||
1 | smsmdtv-objs := smscoreapi.o sms-cards.o smsendian.o | 1 | smsmdtv-objs := smscoreapi.o sms-cards.o smsendian.o |
2 | 2 | ||
3 | obj-$(CONFIG_SMS_SIANO_MDTV) += smsmdtv.o smsdvb.o | 3 | obj-$(CONFIG_SMS_SIANO_MDTV) += smsmdtv.o smsdvb.o |
4 | obj-$(CONFIG_SMS_SIANO_RC) += smsir.o | 4 | |
5 | ifeq ($(CONFIG_SMS_SIANO_RC),y) | ||
6 | obj-$(CONFIG_SMS_SIANO_MDTV) += smsir.o | ||
7 | endif | ||
5 | 8 | ||
6 | ccflags-y += -Idrivers/media/dvb-core | 9 | ccflags-y += -Idrivers/media/dvb-core |
7 | ccflags-y += $(extra-cflags-y) $(extra-cflags-m) | 10 | ccflags-y += $(extra-cflags-y) $(extra-cflags-m) |
diff --git a/drivers/media/mmc/siano/Kconfig b/drivers/media/mmc/siano/Kconfig index 69f8061602a4..aa05ad3c1ccb 100644 --- a/drivers/media/mmc/siano/Kconfig +++ b/drivers/media/mmc/siano/Kconfig | |||
@@ -4,7 +4,7 @@ | |||
4 | 4 | ||
5 | config SMS_SDIO_DRV | 5 | config SMS_SDIO_DRV |
6 | tristate "Siano SMS1xxx based MDTV via SDIO interface" | 6 | tristate "Siano SMS1xxx based MDTV via SDIO interface" |
7 | depends on DVB_CORE && RC_CORE && HAS_DMA | 7 | depends on DVB_CORE && HAS_DMA |
8 | depends on MMC | 8 | depends on MMC |
9 | select MEDIA_COMMON_OPTIONS | 9 | select MEDIA_COMMON_OPTIONS |
10 | ---help--- | 10 | ---help--- |
diff --git a/drivers/media/usb/siano/Kconfig b/drivers/media/usb/siano/Kconfig index b2c229e73952..5afbd9a4b55c 100644 --- a/drivers/media/usb/siano/Kconfig +++ b/drivers/media/usb/siano/Kconfig | |||
@@ -4,7 +4,7 @@ | |||
4 | 4 | ||
5 | config SMS_USB_DRV | 5 | config SMS_USB_DRV |
6 | tristate "Siano SMS1xxx based MDTV receiver" | 6 | tristate "Siano SMS1xxx based MDTV receiver" |
7 | depends on DVB_CORE && RC_CORE && HAS_DMA | 7 | depends on DVB_CORE && HAS_DMA |
8 | select MEDIA_COMMON_OPTIONS | 8 | select MEDIA_COMMON_OPTIONS |
9 | ---help--- | 9 | ---help--- |
10 | Choose if you would like to have Siano's support for USB interface | 10 | Choose if you would like to have Siano's support for USB interface |