]> git.karo-electronics.de Git - linux-beck.git/commit
V4L/DVB: staging/lirc: fix non-CONFIG_MODULES build horkage
authorJarod Wilson <jarod@redhat.com>
Thu, 29 Jul 2010 21:20:44 +0000 (18:20 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 9 Aug 2010 02:42:57 +0000 (23:42 -0300)
commit82ce67bf262b3f47ecb5a0ca31cace8ac72b7c98
treec782cdf8db94f03dbf9d281e7b1c7dbf9c604c0f
parentefce8ca3c5d8a35018f801d687396e1911cfc868
V4L/DVB: staging/lirc: fix non-CONFIG_MODULES build horkage

Fix when CONFIG_MODULES is not enabled:

drivers/staging/lirc/lirc_parallel.c:243: error: implicit declaration of function 'module_refcount'
drivers/staging/lirc/lirc_it87.c:150: error: implicit declaration of function 'module_refcount'
drivers/built-in.o: In function `it87_probe':
lirc_it87.c:(.text+0x4079b0): undefined reference to `init_chrdev'
lirc_it87.c:(.text+0x4079cc): undefined reference to `drop_chrdev'
drivers/built-in.o: In function `lirc_it87_exit':
lirc_it87.c:(.exit.text+0x38a5): undefined reference to `drop_chrdev'

Its a quick hack and untested beyond building, since I don't have the
hardware, but it should do the trick.

Acked-by: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: Jarod Wilson <jarod@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/staging/lirc/lirc_it87.c
drivers/staging/lirc/lirc_parallel.c