]> git.openfabrics.org - ~emulex/infiniband.git/commit
staging: comedi: 8253: mmio address is a void __iomem *
authorH Hartley Sweeten <hartleys@visionengravers.com>
Thu, 20 Sep 2012 00:06:47 +0000 (17:06 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 21 Sep 2012 16:26:20 +0000 (09:26 -0700)
commit5743aaac2938eb841e14879b0f73afb7fca6f0ad
treed01c088c049535280da0d466e03e24bb86652c5d
parent1f5cc359158772304a92ee9c5682ca83416d2ba8
staging: comedi: 8253: mmio address is a void __iomem *

The inline functions for accessing a memory mapped 8254 device
are using a void * for the 'base_address' of the device. Memory
mapped io using the read/write functions should be using a
void __iomem * for the address.

Fixing these exposed a couple other void * / void __iomem *
issues in the ni_labpc driver.

This fixes a number of sparse warnings like:

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

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

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/8253.h
drivers/staging/comedi/drivers/ni_labpc.c