staging: comedi: drivers: use comedi_legacy_detach() in simple drivers
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Thu, 18 Apr 2013 21:33:22 +0000 (14:33 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 19 Apr 2013 18:19:53 +0000 (11:19 -0700)
commit21208519d42404150fef42283a20192ffe08b0af
tree71ab649897cdcf32ebb7cc9f554430908feea308
parente608796ab624049419e987be32f81ab08486c7ba
staging: comedi: drivers: use comedi_legacy_detach() in simple drivers

Use the new comedi_legacy_detach() helper in the (*detach) to release
the I/O region requested by these drivers.

Since the (*detach) for these drivers only releases the region, remove
the private (*detach) functions and use comedi_legacy_detach() directly
for the (*detach).

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Reviewed-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
19 files changed:
drivers/staging/comedi/drivers/acl7225b.c
drivers/staging/comedi/drivers/adq12b.c
drivers/staging/comedi/drivers/aio_iiro_16.c
drivers/staging/comedi/drivers/amplc_pc263.c
drivers/staging/comedi/drivers/dt2801.c
drivers/staging/comedi/drivers/dt2815.c
drivers/staging/comedi/drivers/dt2817.c
drivers/staging/comedi/drivers/fl512.c
drivers/staging/comedi/drivers/mpc624.c
drivers/staging/comedi/drivers/multiq3.c
drivers/staging/comedi/drivers/ni_at_ao.c
drivers/staging/comedi/drivers/pcl725.c
drivers/staging/comedi/drivers/pcl730.c
drivers/staging/comedi/drivers/pcm3730.c
drivers/staging/comedi/drivers/pcmda12.c
drivers/staging/comedi/drivers/poc.c
drivers/staging/comedi/drivers/rti800.c
drivers/staging/comedi/drivers/rti802.c
drivers/staging/comedi/drivers/s526.c