staging: dgnc: neo.c: changes param in neo_read_eeprom function for sparse
authorLidza Louina <lidza.louina@gmail.com>
Mon, 26 Aug 2013 17:56:11 +0000 (13:56 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 26 Aug 2013 23:26:56 +0000 (16:26 -0700)
commitc2ac546ea4b5e71dafb80892558ca0f125187998
tree0c7c4e45478ecd3239785b5699e8048110f0557b
parent68b146e8944ae3cfc64feb7f9a12cc6190562758
staging: dgnc: neo.c: changes param in neo_read_eeprom function for sparse

This patch adds a marker to neo_read_eeprom function's
base parameter.

It removes these warnings found in neo.c:

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

These warnings happen because this function gets
called with a board_t->re_map_base variable. A previous
patch added the __iomem marker to this variable. This
patch ensures that the changes are consistent.

Signed-off-by: Lidza Louina <lidza.louina@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/dgnc/dgnc_neo.c