]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
staging: dgap: fix sparse warnings for re_map_membase and re_map_port
authorMark Hounschell <markh@compro.net>
Wed, 23 Apr 2014 19:43:07 +0000 (15:43 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 16 May 2014 19:16:58 +0000 (12:16 -0700)
This patch fixes sparse warnings for the
re_map_membase and re_map_port variables.

Signed-off-by: Mark Hounschell <markh@compro.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/dgap/dgap.c
drivers/staging/dgap/dgap.h

index 55a23b051e86c63699dab0cfd28babdde822a7c6..38db01a75c144dd799b1c8269ec76be6efb76375 100644 (file)
@@ -1300,7 +1300,7 @@ static int dgap_tty_init(struct board_t *brd)
        int i;
        int tlw;
        uint true_count = 0;
-       u8 *vaddr;
+       u8 __iomem *vaddr;
        u8 modem = 0;
        struct channel_t *ch;
        struct bs_t *bs;
@@ -4310,7 +4310,7 @@ static int dgap_tty_register_ports(struct board_t *brd)
  */
 static void dgap_do_bios_load(struct board_t *brd, const u8 *ubios, int len)
 {
-       u8 *addr;
+       u8 __iomem *addr;
        uint offset;
        int i;
 
@@ -4343,7 +4343,7 @@ static void dgap_do_bios_load(struct board_t *brd, const u8 *ubios, int len)
  */
 static int dgap_test_bios(struct board_t *brd)
 {
-       u8 *addr;
+       u8 __iomem *addr;
        u16 word;
        u16 err1;
        u16 err2;
@@ -4386,7 +4386,7 @@ static int dgap_test_bios(struct board_t *brd)
  */
 static void dgap_do_fep_load(struct board_t *brd, const u8 *ufep, int len)
 {
-       u8 *addr;
+       u8 __iomem *addr;
        uint offset;
 
        if (!brd || (brd->magic != DGAP_BOARD_MAGIC) || !brd->re_map_membase)
@@ -4430,7 +4430,7 @@ static void dgap_do_fep_load(struct board_t *brd, const u8 *ufep, int len)
  */
 static int dgap_test_fep(struct board_t *brd)
 {
-       u8 *addr;
+       u8 __iomem *addr;
        u16 word;
        u16 err1;
        u16 err2;
@@ -4529,7 +4529,7 @@ static void dgap_do_reset_board(struct board_t *brd)
  */
 static void dgap_do_conc_load(struct board_t *brd, u8 *uaddr, int len)
 {
-       char *vaddr;
+       char __iomem *vaddr;
        u16 offset = 0;
        struct downld_t *to_dp;
 
@@ -4667,7 +4667,7 @@ static void dgap_poll_tasklet(unsigned long data)
 {
        struct board_t *bd = (struct board_t *) data;
        ulong  lock_flags;
-       char *vaddr;
+       char __iomem *vaddr;
        u16 head, tail;
 
        if (!bd || (bd->magic != DGAP_BOARD_MAGIC))
@@ -4743,7 +4743,7 @@ out:
 static void dgap_cmdb(struct channel_t *ch, u8 cmd, u8 byte1,
                        u8 byte2, uint ncmds)
 {
-       char            *vaddr = NULL;
+       char __iomem    *vaddr;
        struct cm_t     *cm_addr = NULL;
        uint            count;
        uint            n;
@@ -4828,7 +4828,7 @@ static void dgap_cmdb(struct channel_t *ch, u8 cmd, u8 byte1,
  *=======================================================================*/
 static void dgap_cmdw(struct channel_t *ch, u8 cmd, u16 word, uint ncmds)
 {
-       char            *vaddr = NULL;
+       char __iomem    *vaddr;
        struct cm_t     *cm_addr = NULL;
        uint            count;
        uint            n;
@@ -4911,7 +4911,7 @@ static void dgap_cmdw(struct channel_t *ch, u8 cmd, u16 word, uint ncmds)
  *=======================================================================*/
 static void dgap_cmdw_ext(struct channel_t *ch, u16 cmd, u16 word, uint ncmds)
 {
-       char            *vaddr = NULL;
+       char __iomem    *vaddr;
        struct cm_t     *cm_addr = NULL;
        uint            count;
        uint            n;
@@ -5058,7 +5058,7 @@ static void dgap_wmove(struct channel_t *ch, char *buf, uint cnt)
  */
 static uint dgap_get_custom_baud(struct channel_t *ch)
 {
-       u8 *vaddr;
+       u8 __iomem *vaddr;
        ulong offset = 0;
        uint value = 0;
 
@@ -5580,7 +5580,7 @@ static int dgap_event(struct board_t *bd)
        ulong           lock_flags2;
        struct bs_t     *bs;
        u8              *event;
-       u8              *vaddr = NULL;
+       u8 __iomem      *vaddr;
        struct ev_t     *eaddr = NULL;
        uint            head;
        uint            tail;
index b23570bd183dbcabc56fedc3a01e69554b7e95d4..72b3d0c29e1e75db13978556f4b15d3b6480f0f6 100644 (file)
@@ -571,8 +571,8 @@ struct board_t {
        ulong           membase;        /* Start of base memory of the card */
        ulong           membase_end;    /* End of base memory of the card */
 
-       u8              *re_map_port;   /* Remapped io port of the card */
-       u8              *re_map_membase;/* Remapped memory of the card */
+       u8 __iomem      *re_map_port;   /* Remapped io port of the card */
+       u8 __iomem      *re_map_membase;/* Remapped memory of the card */
 
        u8              runwait;        /* # Processes waiting for FEP  */
        u8              inhibit_poller; /* Tells the poller to leave us alone */