From: H Hartley Sweeten Date: Sat, 18 Aug 2012 01:20:51 +0000 (-0700) Subject: staging: comedi: adv_pci_dio: simplify the 'detach' X-Git-Tag: omap-for-v3.7-rc1/fixes-cpufreq-signed~75^2~835 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cb448d6572219efa4a6eb0c98f37125079b78549;p=pandora-kernel.git staging: comedi: adv_pci_dio: simplify the 'detach' Currently the 'detach' function in this driver walks thru the boardinfo in order to find the subdevice index for any sdio subdevices in order to call the subdev_8255_cleanup(). Then it goes thru all the subdevices to clean the s->private pointer. All the sdio subdevices are unique in that the s->type is COMEDI_SUBD_DIO. Use that to know when to call the cleanup for the 8255 subdevice. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed