diff options
author | H Hartley Sweeten <hsweeten@visionengravers.com> | 2014-07-29 22:01:20 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-07-30 23:55:14 (GMT) |
commit | d7e6dc1338eebae3b324b9a99e9d03d80c43aaef (patch) | |
tree | 168b0913511b01f6a9baf721ffc2837fa8d867e7 /drivers/staging/comedi/drivers.c | |
parent | ab35426810e855e5cffa8d7cebbfe8d1c53594c3 (diff) | |
download | linux-d7e6dc1338eebae3b324b9a99e9d03d80c43aaef.tar.xz |
staging: comedi: add an 'mmio' member to comedi_device
All the comedi drivers that use memory mapped io currently have a
void __iomem * member in their private data for the driver. For
some of the drivers this is actually the only member in that data.
For convienence, add a new member to the comedi_device for this
void __iomem *.
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>
Diffstat (limited to 'drivers/staging/comedi/drivers.c')
-rw-r--r-- | drivers/staging/comedi/drivers.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/staging/comedi/drivers.c b/drivers/staging/comedi/drivers.c index 42ddf13..9ada130 100644 --- a/drivers/staging/comedi/drivers.c +++ b/drivers/staging/comedi/drivers.c @@ -121,6 +121,7 @@ static void comedi_device_detach_cleanup(struct comedi_device *dev) dev->driver = NULL; dev->board_name = NULL; dev->board_ptr = NULL; + dev->mmio = NULL; dev->iobase = 0; dev->iolen = 0; dev->ioenabled = false; |