From: H Hartley Sweeten Date: Thu, 22 Jan 2015 00:22:13 +0000 (-0700) Subject: staging: comedi: vmk80xx: GPCT_RESET is not an (*insn_config) instruction X-Git-Tag: omap-for-v4.1/prcm-dts-mfd-syscon-fix~83^2~197 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8518a52c4456c697033bf81f0df73c026200ad8e;p=pandora-kernel.git staging: comedi: vmk80xx: GPCT_RESET is not an (*insn_config) instruction The data[0] parameter to (*insn_config) functions is the "configuration instruction" that should be handled. These are defined by the enum configuration_ids in comedi.h. This driver is currently checking the data[0] value to be INSN_CONFIG_RESET or GPCT_RESET in order to reset a counter channel. GPCT_RESET is defined as 0x0001 which would match the configuration instruction INSN_CONFIG_DIO_OUTPUT. That doesn't make any sense for a counter. Remove GPCT_RESET from the insn_cmd test. Signed-off-by: H Hartley Sweeten Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed