diff options
author | Greg Kroah-Hartman <gregkh@suse.de> | 2010-05-04 16:07:43 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-05-11 11:36:08 -0700 |
commit | a7f22a84ba2e5a99b874bf36a772b5d7424cec11 (patch) | |
tree | d88f55d901dd37d5bd8ebf81e2862415537068de /drivers/staging/comedi | |
parent | f31d0008cef0df52d1a2662ef56a24bdd88b0105 (diff) | |
download | kernel_samsung_smdk4412-a7f22a84ba2e5a99b874bf36a772b5d7424cec11.zip kernel_samsung_smdk4412-a7f22a84ba2e5a99b874bf36a772b5d7424cec11.tar.gz kernel_samsung_smdk4412-a7f22a84ba2e5a99b874bf36a772b5d7424cec11.tar.bz2 |
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>
Diffstat (limited to 'drivers/staging/comedi')
-rw-r--r-- | drivers/staging/comedi/drivers/amplc_dio200.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/comedi/drivers/amplc_dio200.c b/drivers/staging/comedi/drivers/amplc_dio200.c index 6a87652..8eb6765 100644 --- a/drivers/staging/comedi/drivers/amplc_dio200.c +++ b/drivers/staging/comedi/drivers/amplc_dio200.c @@ -661,7 +661,7 @@ dio200_inttrig_start_intr(struct comedi_device *dev, struct comedi_subdevice *s, subpriv = s->private; spin_lock_irqsave(&subpriv->spinlock, flags); - s->async->inttrig = 0; + s->async->inttrig = NULL; if (subpriv->active) event = dio200_start_intr(dev, s); @@ -1364,7 +1364,7 @@ static int dio200_attach(struct comedi_device *dev, struct comedi_devconfig *it) break; case sd_8255: /* digital i/o subdevice (8255) */ - ret = subdev_8255_init(dev, s, 0, + ret = subdev_8255_init(dev, s, NULL, iobase + layout->sdinfo[n]); if (ret < 0) return ret; |