1
0
Files
linux/drivers
Ian Abbott de06d7c6b8 staging: comedi: restrict comedi_set_hw_dev() usage
Don't allow comedi drivers to change `dev->hw_dev` using
`comedi_set_hw_dev()` if it's already been set.  Return `-EEXIST` in
that case.

`dev->hw_dev` needs to be set to NULL by the core during clean-up of the
comedi device, so add a local function `comedi_clear_hw_dev()` to do
that.

Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2013-02-03 17:44:20 -08:00
..
2012-12-18 15:19:06 +10:30
2013-01-25 21:25:02 -08:00
2013-01-16 15:57:54 +01:00
2013-01-15 10:45:26 -07:00