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:
committed by
Greg Kroah-Hartman
parent
c9e004dad9
commit
d2443fe3b1
@@ -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);
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user