mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-13 16:16:15 -04:00
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>
This commit is contained in:
parent
c800752bc8
commit
77ffced7af
1 changed files with 0 additions and 2 deletions
|
|
@ -2582,8 +2582,6 @@ static int pci230_auto_attach(struct comedi_device *dev,
|
|||
thisboard = comedi_board(dev);
|
||||
devpriv = dev->private;
|
||||
|
||||
comedi_set_hw_dev(dev, &pci_dev->dev);
|
||||
|
||||
dev->board_name = thisboard->name;
|
||||
|
||||
rc = comedi_pci_enable(dev);
|
||||
|
|
|
|||
Loading…
Reference in a new issue