serial: mrst_max3110: fix casting warning
authorJingoo Han <jg1.han@samsung.com>
Thu, 8 Aug 2013 08:32:52 +0000 (17:32 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 12 Aug 2013 18:35:31 +0000 (11:35 -0700)
commit6602769ba92d9ed310af01772800ca4d0b1fff77
tree5b7060191b918908b9a9f31cc25f838bf530b6bd
parent75474b6fd6660486d89226fc6f704853c76210e3
serial: mrst_max3110: fix casting warning

max->port.membase is (unsigned char __iomem *); thus,
casting (unsigned char __iomem *) is necessary to fix
the following warning. Also, serial_m3110_ops() is staticized.

drivers/tty/serial/mrst_max3110.c:716:17: warning: symbol 'serial_m3110_ops' was not declared. Should it be static?
drivers/tty/serial/mrst_max3110.c:847:27: warning: incorrect type in assignment (different address spaces)
drivers/tty/serial/mrst_max3110.c:847:27:    expected unsigned char [noderef] <asn:2>*membase
drivers/tty/serial/mrst_max3110.c:847:27:    got void *<noident>

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/mrst_max3110.c