summaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/check-perf-trace.py
diff options
context:
space:
mode:
authorIan Abbott <abbotti@mev.co.uk>2013-02-01 13:23:20 +0000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-02-03 17:44:20 -0800
commitde06d7c6b8e3b886eec0302ecbadf76944a42ca4 (patch)
treeda56c9e3aadd7278b9ddde550f09db348f4bcc11 /tools/perf/scripts/python/check-perf-trace.py
parentda71751177f35f0ca5494968cc237511c423a744 (diff)
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>
Diffstat (limited to 'tools/perf/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions