staging: dgnc: tty.c: edits var in init func for sparse
authorLidza Louina <lidza.louina@gmail.com>
Mon, 26 Aug 2013 18:04:59 +0000 (14:04 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 26 Aug 2013 23:26:56 +0000 (16:26 -0700)
This patch edits the vaddr variable in dgnc_tty_init.
The variable gets set to board_t->re_map_membase. A
previous patch changed the re_map_membase variable's
marker and type. This patch makes sure that the
changes are consistent and that it doesn't cause
sparse warnings.

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

index f0ecc65b86b772c11f74e8b1a2903e68a4900e15..a54b8296697621fea40f7ca3c0a5e6b2d459e5e2 100644 (file)
@@ -344,7 +344,7 @@ int dgnc_tty_register(struct board_t *brd)
 int dgnc_tty_init(struct board_t *brd)
 {
        int i;
-       uchar *vaddr;
+       u8 __iomem *vaddr;
        struct channel_t *ch;
 
        if (!brd)