staging: comedi: amplc_pci230: no need to comedi_set_hw_dev() here
authorIan Abbott <abbotti@mev.co.uk>
Mon, 1 Sep 2014 11:03:41 +0000 (12:03 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 2 Sep 2014 18:21:31 +0000 (11:21 -0700)
commit77ffced7af82c13243a642e731b52fc1714fd48a
tree36927ad5f73eeca638ca85981efa9cffb8f6b788
parentc800752bc85c8efb00d77c60aa89f585cc5f7bee
staging: comedi: amplc_pci230: no need to comedi_set_hw_dev() here

The comedi core module calls `comedi_set_hw_dev()` to associate the
hardware `struct device` with the `struct comedi_device` before it calls
the comedi driver's "auto_attach" hook `pci230_auto_attach()`.  There is
no need for `pci230_auto_attach()` to call `comedi_set_hw_dev()` itself,
so remove the 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_pci230.c