]> git.karo-electronics.de Git - karo-tx-linux.git/commit
serial: imx: Change cast to handle 64-bit resource_size_t
authorOlof Johansson <olof@lixom.net>
Thu, 12 Sep 2013 04:27:53 +0000 (21:27 -0700)
committerJason Liu <r64343@freescale.com>
Wed, 30 Oct 2013 01:55:54 +0000 (09:55 +0800)
commit61c416c2613c238b98e5297034ef50c64690e71d
tree1b1639ce74a16d9c834a1c32389a4c7807d6ba52
parent282c1e79ccc1a388afc7cc6aa7f57dd3fa2415cb
serial: imx: Change cast to handle 64-bit resource_size_t

This resolves a warning where resource_size_t is larger than void *:

  drivers/tty/serial/imx.c:1542:6: warning: cast to pointer from integer
   of different size [-Wint-to-pointer-cast]

Since iomem_base is a void *, casting to unsigned long is safe.

It's unclear to me that this comparison is truly needed, but it's there
on several other drivers as well.

Signed-off-by: Olof Johansson <olof@lixom.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Huang Shijie <b32955@freescale.com>
drivers/tty/serial/imx.c