From: H Hartley Sweeten Date: Tue, 23 Apr 2013 18:05:06 +0000 (-0700) Subject: staging: comedi: ni_labpc: fix legacy driver build X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~137^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a0eeed40100b2eca57afdf99d76c57dedd218a8a;p=pandora-kernel.git staging: comedi: ni_labpc: fix legacy driver build CONFIG_COMEDI_NI_LABPC_ISA is a tristate option. #if IS_ENABLED() needs to be used instead of #ifdef in order to build the legacy specific code in this driver. The local variable 'board' is not used in labpc_attach(). Remove it. The labpc_detach() function is only referenced in this file. Make it static. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed