From: H Hartley Sweeten Date: Thu, 6 Sep 2012 01:30:08 +0000 (-0700) Subject: staging: comedi: amplc_pc263: remove subdevice pointer math X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=d8029dcf1be06797d75ff53100bf45949d4a2767;p=openwrt%2Fstaging%2Fblogic.git staging: comedi: amplc_pc263: remove subdevice pointer math Convert the comedi_subdevice access from pointer math to array access. Signed-off-by: H Hartley Sweeten Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/comedi/drivers/amplc_pc263.c b/drivers/staging/comedi/drivers/amplc_pc263.c index 017e33ea8b7c..60830ccfb903 100644 --- a/drivers/staging/comedi/drivers/amplc_pc263.c +++ b/drivers/staging/comedi/drivers/amplc_pc263.c @@ -225,7 +225,7 @@ static int pc263_common_attach(struct comedi_device *dev, unsigned long iobase) if (ret) return ret; - s = dev->subdevices + 0; + s = &dev->subdevices[0]; /* digital output subdevice */ s->type = COMEDI_SUBD_DO; s->subdev_flags = SDF_READABLE | SDF_WRITABLE;