staging: comedi: amplc_pc263: Use IS_ENABLED()
authorIan Abbott <abbotti@mev.co.uk>
Wed, 30 May 2012 18:04:38 +0000 (19:04 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 5 Jun 2012 03:48:07 +0000 (20:48 -0700)
commitb4843c19be4cbae48dc002080bdf49c274f26796
treed338d20ba9f8269987a39d976eecb0a84d8e33c7
parent61f5a223155d278c9731f2406513847b8fe0bddc
staging: comedi: amplc_pc263: Use IS_ENABLED()

Change conditional compilation on kernel options to use the IS_ENABLED()
macro.  Remove most of the #ifdef lines and add extra if
(IS_ENABLED(xxx)) tests so the compiler can remove unreachable code.
The pci_driver stuff and device table is still conditionally compiled.

In pc263_attach() move the call to alloc_private() as it is only used
for PCI devices.  (In pc263_detach(), for ISA devices a non-zero
dev->iobase means the I/O region needs releasing.)

Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/amplc_pc263.c