Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3fd19714 authored by H Hartley Sweeten's avatar H Hartley Sweeten Committed by Greg Kroah-Hartman
Browse files

staging: comedi: skel: use comedi_legacy_detach()



Update the skeleton driver to use the new comedi_legacy_detach()
helper in the (*detach) to release the I/O region. Also, update
the comment about it.

Signed-off-by: default avatarH Hartley Sweeten <hsweeten@visionengravers.com>
Reviewed-by: default avatarIan Abbott <abbotti@mev.co.uk>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 60cb3b02
Loading
Loading
Loading
Loading
+5 −4
Original line number Original line Diff line number Diff line
@@ -632,11 +632,12 @@ static void skel_detach(struct comedi_device *dev)
		/*
		/*
		 * ISA board
		 * ISA board
		 *
		 *
		 * If I/O regions successfully requested by _attach(),
		 * Release the first I/O region requested during the
		 * release them here.
		 * _attach(). This is safe to call even if the request
		 * failed. If any additional I/O regions are requested
		 * they need to be released by the driver.
		 */
		 */
		if (dev->iobase)
		comedi_legacy_detach(dev);
			release_region(dev->iobase, SKEL_SIZE);
	}
	}
}
}