From: Ian Abbott Date: Wed, 30 May 2012 18:04:38 +0000 (+0100) Subject: staging: comedi: amplc_pc263: Use IS_ENABLED() X-Git-Tag: v3.6-rc1~100^2~989 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b4843c19be4cbae48dc002080bdf49c274f26796;p=pandora-kernel.git 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 Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed