From: H Hartley Sweeten Date: Tue, 4 Nov 2014 17:55:06 +0000 (-0700) Subject: staging: comedi: addi_apci_3120: tidy up apci3120_reset() X-Git-Tag: omap-for-v3.19/fixes-rc1~73^2~273 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=884218c5a3ab3ebc522b53054019844dcac5fca7;p=pandora-kernel.git staging: comedi: addi_apci_3120: tidy up apci3120_reset() This function is only called during the attach of the driver and it's called after the private data has been kzalloc'd. There is no reason to clear any of the private data members. Simplify the function by just writing '0' to the necessary registers to disable all the interrupt sources and stop the timers. For aesthetics, change the return type to void. Signed-off-by: H Hartley Sweeten Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed