linux/drivers/net/irda
Ingo Molnar c17f888f8f irda: fix !PNP support in drivers/net/irda/nsc-ircc.c
x86.git testing found the following build failure in latest -git:

 drivers/built-in.o: In function `nsc_ircc_pnp_probe':
 nsc-ircc.c:(.text+0xdf1b6): undefined reference to `pnp_get_resource'
 nsc-ircc.c:(.text+0xdf1d4): undefined reference to `pnp_get_resource'
 nsc-ircc.c:(.text+0xdf1ee): undefined reference to `pnp_get_resource'
 nsc-ircc.c:(.text+0xdf237): undefined reference to `pnp_get_resource'
 nsc-ircc.c:(.text+0xdf24c): undefined reference to `pnp_get_resource'
 drivers/built-in.o:nsc-ircc.c:(.text+0xdf266): more undefined references to `pnp_get_resource' follow
 make: *** [.tmp_vmlinux1] Error 1

triggered via this config:

  http://redhat.com/~mingo/misc/config-Sat_May__3_20_53_13_CEST_2008.bad

while generally most users will have PNP enabled, drivers can support
non-PNP build mode too - and most drivers implement it. That is typically
done by providing a dummy pnp_driver structure that will not probe anything.

The fallback routines in the driver will handle this dumber mode of
operation too.

This patch implements that. I have not tested whether this actually
works on real hardware so take care. It does resolve the build bug.

[ Another solution that is used by a few drivers is to exclude the driver
  in the Kconfig if PNP is disabled, via "depends on PNP", but this would
  limit the availability of the driver needlessly. ]

Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: David S. Miller <davem@davemloft.net>
2008-05-05 01:04:06 -07:00
..
Kconfig [IrDA]: Irport removal - part 1 2008-01-28 15:08:10 -08:00
Makefile [IrDA]: Irport removal - part 1 2008-01-28 15:08:10 -08:00
act200l-sir.c
actisys-sir.c Convert files to UTF-8 and some cleanups 2007-10-19 23:21:04 +02:00
ali-ircc.c net drivers: fix platform driver hotplug/coldplug 2008-04-25 02:08:54 -04:00
ali-ircc.h Spelling fixes: lenght->length 2008-02-03 15:42:53 +02:00
au1k_ir.c drivers/net/irda/au1k_ir: fix obvious irq handler bugs 2007-10-29 05:42:18 -04:00
au1000_ircc.h
donauboe.c
donauboe.h
ep7211-sir.c
esi-sir.c
girbil-sir.c Convert files to UTF-8 and some cleanups 2007-10-19 23:21:04 +02:00
irda-usb.c [IRDA]: Race between open and disconnect in irda-usb. 2007-12-16 14:07:36 -08:00
irda-usb.h
irtty-sir.c tty: The big operations rework 2008-04-30 08:29:47 -07:00
irtty-sir.h
kingsun-sir.c
ks959-sir.c
ksdazzle-sir.c
litelink-sir.c
ma600-sir.c
mcp2120-sir.c
mcs7780.c net: use get/put_unaligned_* helpers 2008-04-29 08:06:27 -07:00
mcs7780.h
nsc-ircc.c irda: fix !PNP support in drivers/net/irda/nsc-ircc.c 2008-05-05 01:04:06 -07:00
nsc-ircc.h Spelling fixes: lenght->length 2008-02-03 15:42:53 +02:00
old_belkin-sir.c
pxaficp_ir.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6 2008-04-25 12:28:28 -07:00
sa1100_ir.c net drivers: fix platform driver hotplug/coldplug 2008-04-25 02:08:54 -04:00
sir-dev.h
sir_dev.c
sir_dongle.c
smsc-ircc2.c [netdrvr] irq handler minor cleanups in several drivers 2008-01-28 15:03:40 -08:00
smsc-ircc2.h
smsc-sio.h
stir4200.c net: use get/put_unaligned_* helpers 2008-04-29 08:06:27 -07:00
tekram-sir.c Convert files to UTF-8 and some cleanups 2007-10-19 23:21:04 +02:00
toim3232-sir.c
via-ircc.c [netdrvr] irq handler minor cleanups in several drivers 2008-01-28 15:03:40 -08:00
via-ircc.h Spelling fixes: lenght->length 2008-02-03 15:42:53 +02:00
vlsi_ir.c netdev: use non-racy method for proc entries creation 2008-04-29 08:06:22 -07:00
vlsi_ir.h
w83977af.h
w83977af_ir.c
w83977af_ir.h Convert files to UTF-8 and some cleanups 2007-10-19 23:21:04 +02:00