From: H Hartley Sweeten Date: Thu, 18 Apr 2013 21:33:04 +0000 (-0700) Subject: staging: comedi: das1800: use comedi_legacy_detach() X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~137^2~45 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e608796ab624049419e987be32f81ab08486c7ba;p=pandora-kernel.git staging: comedi: das1800: use comedi_legacy_detach() Use the new comedi_legacy_detach() helper in the (*detach) to release the first I/O region requested by this driver. An additional I/O region is requested for some of the boards this driver supports. The iobase for that region is stored in the private data so that the (*detach) knows it needs to be released. Remove the extra cleanup in the (*attach) that releases the first region. For aesthetics, move the release of the additional region in the (*detach) so it follows the (*attach) order. Signed-off-by: H Hartley Sweeten Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed