From: H Hartley Sweeten Date: Tue, 14 Oct 2014 17:44:18 +0000 (-0700) Subject: staging: comedi: addi_common.c: remove i_ADDI_Reset() X-Git-Tag: omap-for-v3.19/fixes-rc1~73^2~860 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5b1ccca7276d49daa3546dabebc5cdbb63c8d21d;p=pandora-kernel.git staging: comedi: addi_common.c: remove i_ADDI_Reset() The addi_apci_035 and addi_apci_1500 are the only drivers left that use this function in addi_common.c. The function simply calls the 'reset' function that is in the boardinfo of the driver. Both drivers use the same 'reset' function for all boardnfo entries. Remove the i_ADDI_Reset() function as well as the 'reset' boardinfo and just call the 'reset' function directly. The i_ADDI_Reset() is called by addi_auto_attach() in addi_common.c after a sucessful attach. Modify the (*auto_attach) in the drivers to call the 'reset' function directly and remove it from addi_auto_attach(). Signed-off-by: H Hartley Sweeten Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed