]> git.baikalelectronics.ru Git - kernel.git/commit
staging: comedi: gsc_hpdi: plx9080_iobase and hpdi_iobase are void __iomem *
authorH Hartley Sweeten <hartleys@visionengravers.com>
Tue, 22 May 2012 00:52:07 +0000 (17:52 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 5 Jun 2012 03:24:44 +0000 (20:24 -0700)
commit9ee9177545b20553a2e4b1089aee1a2d618864b7
tree50b18ec1223eea6cf67fba60ca37364e023c4b5b
parentc014498937ff46aa845bae044e469378465d31b1
staging: comedi: gsc_hpdi: plx9080_iobase and hpdi_iobase are void __iomem *

The plx9080_iobase and hpdi_iobase variables in struct hpdi_private
are ioremap'ed pci resource and should be void __iomem * not void *.

This quiets a lot of sparse warings for the writel and readl calls
like:

warning: incorrect type in argument 1 (different address spaces)
   expected void const volatile [noderef] <asn:2>*addr
   got void *<noident>

warning: incorrect type in argument 2 (different address spaces)
   expected void volatile [noderef] <asn:2>*addr
   got void *

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Ian Abbott <abbotti@mev.co.uk>
Cc: Mori Hess <fmhess@users.sourceforge.net>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/gsc_hpdi.c