From: H Hartley Sweeten Date: Thu, 18 Apr 2013 21:33:40 +0000 (-0700) Subject: staging: comedi: amplc_dio200: use comedi_legacy_detach() X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~137^2~43 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=60cb3b02bc74c90aaa77d1acda1eff73c8dda478;p=pandora-kernel.git staging: comedi: amplc_dio200: use comedi_legacy_detach() The I/O region used by this driver is always requested using comedi_request_region(). The devpriv->io union is only used by the common code shared by the legacy and PCI drivers. Use the new comedi_legacy_detach() helper in the (*detach) to release the I/O region requested by this driver. That function will handle the proper sanity checking before releasing the resource. Signed-off-by: H Hartley Sweeten Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed