From: H Hartley Sweeten Date: Sat, 18 Aug 2012 01:18:40 +0000 (-0700) Subject: staging: comedi: adv_pci1723: cleanup card reset X-Git-Tag: omap-for-v3.7-rc1/fixes-cpufreq-signed~75^2~842 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=edf51472131eedc824609a7bab3be43056cb9eff;p=pandora-kernel.git staging: comedi: adv_pci1723: cleanup card reset Only one 'reset' of the card is required in the attach. Remove the one before setting up the subdevices and leave the one before exiting the attach function. The 'valid' variable in the private data is not needed. This variable is used in the detach to determine if it's ok to call the 'reset' function. Checking if dev->iobase is valid works just as well. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed