From: H Hartley Sweeten Date: Mon, 10 Nov 2014 23:20:14 +0000 (-0700) Subject: staging: comedi: addi_apci_1564: fix counter code in main driver source X-Git-Tag: omap-for-v3.19/fixes-rc1~73^2~164 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3a2cf2f971b7128b1daff50abbd88c766b458544;p=pandora-kernel.git staging: comedi: addi_apci_1564: fix counter code in main driver source The Rev 1.0 APCI-1564 boards do not have counters. Fix the code in the main driver source so that the I/O accesses to the counters do not happen if the devpriv->counters member is not initialized. This does not fix the code in hwdrv_apci1564.c. That code violates the comedi API and is currently broken. Signed-off-by: H Hartley Sweeten Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed