summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLidza Louina <lidza.louina@gmail.com>2013-08-26 17:05:49 (GMT)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-08-26 23:26:55 (GMT)
commit68b146e8944ae3cfc64feb7f9a12cc6190562758 (patch)
tree27a97c10e5c783bf53be4499641acbe5ae47e917
parent7915dea707820724ad5d5117e9e07ccccf712dd6 (diff)
downloadlinux-fsl-qoriq-68b146e8944ae3cfc64feb7f9a12cc6190562758.tar.xz
staging: dgnc: cls.c: changes var in cls_vpd function for sparse
This patch changes cls_vpd function's re_map_vpdbase variable type and marker. It removes these warnings found in cls.c: warning: incorrect type in assignment (different address spaces) expected unsigned char [usertype] *re_map_vpdbase got void [noderef] <asn:2>* warning: incorrect type in argument 1 (different address spaces) expected void const volatile [noderef] <asn:2>*addr got unsigned char [usertype] * warning: incorrect type in argument 1 (different address spaces) expected void volatile [noderef] <asn:2>*addr got unsigned char [usertype] *re_map_vpdbase The variables passed to readb needs to be of type u8 with a __iomem marker. re_map_vpdbase is passed into readb in the code. Signed-off-by: Lidza Louina <lidza.louina@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/staging/dgnc/dgnc_cls.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/dgnc/dgnc_cls.c b/drivers/staging/dgnc/dgnc_cls.c
index 92ecbfb..117e158 100644
--- a/drivers/staging/dgnc/dgnc_cls.c
+++ b/drivers/staging/dgnc/dgnc_cls.c
@@ -1381,7 +1381,7 @@ static void cls_send_immediate_char(struct channel_t *ch, unsigned char c)
static void cls_vpd(struct board_t *brd)
{
ulong vpdbase; /* Start of io base of the card */
- uchar *re_map_vpdbase;/* Remapped memory of the card */
+ u8 __iomem *re_map_vpdbase;/* Remapped memory of the card */
int i = 0;