comedi: Uncripple 8255-based DIO subdevices
commit753abba1edcaa41355411be693c39b9caac8c1d6
authorIan Abbott <abbotti@mev.co.uk>
Fri, 30 Jul 2010 13:42:28 +0000 (30 14:42 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 10 Aug 2010 17:54:06 +0000 (10 10:54 -0700)
tree999d1d622900928c8ba0340275c6f52ecaa225aa
parentf6023962619f6a11e2921ba1d2e0cb9f829b1e72
comedi: Uncripple 8255-based DIO subdevices

(Note: upstream comedi configuration has been overhauled, so this patch
does not apply there.)

Several comedi drivers call subdev_8255_init() (declared in
"drivers/staging/comedi/drivers/8255.h") to set up one or more DIO
subdevices.  This should be provided by the 8255.ko module, but unless
the CONFIG_COMEDI_8255 or CONFIG_COMEDI_8255_MODULE macro is defined,
the 8255.h header uses a dummy inline version of the function instead.
This means the comedi devices end up with an "unused" subdevice with 0
channels instead of a "DIO" subdevice with 24 channels!

This patch provides a non-interactive COMEDI_8255 option and selects it
whenever the COMEDI_PCI_DRIVERS or COMEDI_PCMCIA_DRIVERS options are
selected.

Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/comedi/Kconfig
drivers/staging/comedi/drivers/Makefile