From: H Hartley Sweeten Date: Mon, 23 Feb 2015 21:57:48 +0000 (-0700) Subject: staging: comedi: adv_pci_dio: refactor 's8254' boardinfo X-Git-Tag: omap-for-v4.1/fixes-rc1~165^2~138^2~731 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0275299f26ecde814c7e03f3fb5a6fa73c60acd9;p=pandora-kernel.git staging: comedi: adv_pci_dio: refactor 's8254' boardinfo The boardinfo for the 8254 timer is overly complex. The 8254 timer always has 3 channels and the 'regs' and 'specflags' members of diosubd_data are not used. The only necessary information is the base 'addr' offset to the 8254 registers. Replace the 's8254' member with an unsigned long 'timer_regbase'. Use that to determine if the board has an 8254 timer during the attach of the driver. Save the 'timer_regbase' in the subdevice 'private' pointer to use in the subdevice functions. For aesthetics, absorb pci_dio_add_8254() into the driver attach function. Signed-off-by: H Hartley Sweeten Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed