From: H Hartley Sweeten Date: Mon, 23 Feb 2015 21:57:47 +0000 (-0700) Subject: staging: comedi: adv_pci_dio: simplify counter subdevice I/O X-Git-Tag: omap-for-v4.1/fixes-rc1~165^2~138^2~732 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=50e338b96c1ad0a6e77f559c0dcba5944d0095c1;p=pandora-kernel.git staging: comedi: adv_pci_dio: simplify counter subdevice I/O Only two of the boards supported by this driver have an 8254 counter/timer. Both of these boards have a single 8254 device. Currently the counter subdevice functions are coded to support multiple 8254 devices. This is unnecessary and just complicates the code. Simplfy the subdevice functions to work for a single 8254 counter/timer and refactor the driver (*attach) accordingly. Signed-off-by: H Hartley Sweeten Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed