[media] staging/lirc: Fix compilation when LIRC=m
commit0334c8a52a8578f7aef501a14f78004f931efe20
authorMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 27 Dec 2010 12:41:05 +0000 (27 09:41 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 29 Dec 2010 10:17:12 +0000 (29 08:17 -0200)
tree0634199b7813d4b2123a8843dd90f23396b3180f
parent22efe507705a8437255114f98d0d514524460be0
[media] staging/lirc: Fix compilation when LIRC=m

drivers/staging/lirc/lirc_bt829.c:141: undefined reference to `lirc_register_driver'
drivers/built-in.o:(.rodata+0x20f68): undefined reference to `lirc_dev_fop_read'
drivers/built-in.o:(.rodata+0x20f7c): undefined reference to `lirc_dev_fop_poll'
drivers/built-in.o:(.rodata+0x20f8c): undefined reference to `lirc_dev_fop_open'
drivers/built-in.o:(.rodata+0x20f94): undefined reference to `lirc_dev_fop_close'
drivers/built-in.o:(.rodata+0x21030): undefined reference to `lirc_dev_fop_open'
drivers/built-in.o:(.rodata+0x21038): undefined reference to `lirc_dev_fop_close'

This happens when .config is like:
CONFIG_LIRC=m
CONFIG_IR_LIRC_CODEC=m
CONFIG_LIRC_STAGING=y
CONFIG_LIRC_BT829=y

Don't allow that.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/staging/lirc/Kconfig