diff options
| author | 2012-05-30 19:04:38 +0100 | |
|---|---|---|
| committer | 2012-06-04 20:48:07 -0700 | |
| commit | b4843c19be4cbae48dc002080bdf49c274f26796 (patch) | |
| tree | d338d20ba9f8269987a39d976eecb0a84d8e33c7 /scripts/patch-kernel | |
| parent | staging: comedi: amplc_pc263: Add a missing case (diff) | |
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>
Diffstat (limited to 'scripts/patch-kernel')
0 files changed, 0 insertions, 0 deletions
