staging: comedi: adl_pci9118: use dev->read_subdev
Use the dev->read_subdev that was setup in the device attach instead of accessing the dev->subdevices array directly. Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com> Reviewed-by: Ian Abbott <abbotti@mev.co.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
c9e004dad9
commit
d2443fe3b1
1 changed files with 1 additions and 1 deletions
|
@ -1126,7 +1126,7 @@ static irqreturn_t interrupt_pci9118(int irq, void *d)
|
|||
}
|
||||
}
|
||||
|
||||
(devpriv->int_ai_func) (dev, &dev->subdevices[0], int_adstat,
|
||||
(devpriv->int_ai_func) (dev, dev->read_subdev, int_adstat,
|
||||
int_amcc, int_daq);
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue