From: Ian Abbott Date: Fri, 1 Feb 2013 13:23:20 +0000 (+0000) Subject: staging: comedi: restrict comedi_set_hw_dev() usage X-Git-Tag: v3.9-rc1~127^2~159 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=de06d7c6b8e3b886eec0302ecbadf76944a42ca4;p=pandora-kernel.git 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 Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed