]> git.baikalelectronics.ru Git - kernel.git/commit
staging: comedi: amplc_pc236: no need to set hw_dev
authorIan Abbott <abbotti@mev.co.uk>
Fri, 25 Jul 2014 09:04:51 +0000 (10:04 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 27 Jul 2014 18:28:38 +0000 (11:28 -0700)
commit8c3f9a5cbac957feaaa4a98e70279b9d00a87a86
tree0dc03a86d298ffb46001350f3fd449a44461179e
parente16073f247b98ee64fa7d32d159c85fbedd50713
staging: comedi: amplc_pc236: no need to set hw_dev

The call to `comedi_set_hw_dev()` from `pc236_pci_common_attach()` is
now unnecessary since `pc236_pci_common_attach()` is now only called
from this driver's `auto_attach` hook `pc236_auto_attach()` and the
comedi core now calls `comedi_set_hw_dev()` before calling that.  Remove
the unnecessary call.

Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
Reviewed-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/amplc_pc236.c