]> git.baikalelectronics.ru Git - kernel.git/commit
staging: comedi: icp_multi: io_addr is a void __iomem *
authorH Hartley Sweeten <hartleys@visionengravers.com>
Tue, 22 May 2012 00:55:33 +0000 (17:55 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 5 Jun 2012 03:24:44 +0000 (20:24 -0700)
commit4ad9d6bff1c448109e7a408556d7d4e1441abc7b
treedcf3068216d4908f35324e08a1403fb096c36a40
parent9ee9177545b20553a2e4b1089aee1a2d618864b7
staging: comedi: icp_multi: io_addr is a void __iomem *

The io_addr variable in struct dt3k_private is an ioremap'ed pci
resource and should be void __iomem * not a void *.

This quiets a lot of sparse warings for the writew and readw 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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/icp_multi.c