diff options
| author | Sudip Mukherjee <sudipm.mukherjee@gmail.com> | 2014-10-16 04:46:22 -0400 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-11-06 17:58:28 -0500 |
| commit | 7f1dc2f384792f271833cd89a8608d189b63ea6d (patch) | |
| tree | e44d4b423802179c43706873e636b13dc54fa6a9 | |
| parent | 2fdd8c8c5304901fa7dbb2ce5dbc90a1984cee3d (diff) | |
serial: 8250: sparse warning of incorrect type
fixed a sparse warning in 8250_core.c :
incorrect type in assignment (different address spaces)
the warning was because an unsigned char pointer was being assigned to
a pointer of unsigned char __iomem type .
Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
| -rw-r--r-- | drivers/tty/serial/8250/8250.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/tty/serial/8250/8250.h b/drivers/tty/serial/8250/8250.h index 458ad28338fe..b00836851061 100644 --- a/drivers/tty/serial/8250/8250.h +++ b/drivers/tty/serial/8250/8250.h | |||
| @@ -56,7 +56,7 @@ struct old_serial_port { | |||
| 56 | unsigned int flags; | 56 | unsigned int flags; |
| 57 | unsigned char hub6; | 57 | unsigned char hub6; |
| 58 | unsigned char io_type; | 58 | unsigned char io_type; |
| 59 | unsigned char *iomem_base; | 59 | unsigned char __iomem *iomem_base; |
| 60 | unsigned short iomem_reg_shift; | 60 | unsigned short iomem_reg_shift; |
| 61 | unsigned long irqflags; | 61 | unsigned long irqflags; |
| 62 | }; | 62 | }; |
