Staging: comedi: amplc_dio200.c: fix NULL sparse warnings
Cc: Ian Abbott <abbotti@mev.co.uk> Cc: Frank Mori Hess <fmhess@users.sourceforge.net> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
f31d0008ce
commit
a7f22a84ba
1 changed files with 2 additions and 2 deletions
|
@ -661,7 +661,7 @@ dio200_inttrig_start_intr(struct comedi_device *dev, struct comedi_subdevice *s,
|
||||||
subpriv = s->private;
|
subpriv = s->private;
|
||||||
|
|
||||||
spin_lock_irqsave(&subpriv->spinlock, flags);
|
spin_lock_irqsave(&subpriv->spinlock, flags);
|
||||||
s->async->inttrig = 0;
|
s->async->inttrig = NULL;
|
||||||
if (subpriv->active)
|
if (subpriv->active)
|
||||||
event = dio200_start_intr(dev, s);
|
event = dio200_start_intr(dev, s);
|
||||||
|
|
||||||
|
@ -1364,7 +1364,7 @@ static int dio200_attach(struct comedi_device *dev, struct comedi_devconfig *it)
|
||||||
break;
|
break;
|
||||||
case sd_8255:
|
case sd_8255:
|
||||||
/* digital i/o subdevice (8255) */
|
/* digital i/o subdevice (8255) */
|
||||||
ret = subdev_8255_init(dev, s, 0,
|
ret = subdev_8255_init(dev, s, NULL,
|
||||||
iobase + layout->sdinfo[n]);
|
iobase + layout->sdinfo[n]);
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
return ret;
|
return ret;
|
||||||
|
|
Loading…
Add table
Reference in a new issue