serial: sh-sci: Fix warnings due to improper casts and printk formats
authorLaurent Pinchart <[email protected]>
Wed, 11 Dec 2013 12:40:31 +0000 (13:40 +0100)
committerSimon Horman <[email protected]>
Thu, 12 Dec 2013 13:14:49 +0000 (22:14 +0900)
commite2afca6988c335d2ec7b66f2fadcd63286570bf8
treeded4a896a5c13a2cedd26f9c745288aa48b67bcd
parent6ce4eac1f600b34f2f7f58f9cd8f0503d79e42ae
serial: sh-sci: Fix warnings due to improper casts and printk formats

Use the %zu and %pad printk specifiers to print size_t and dma_addr_t
variables, and cast pointers to uintptr_t instead of unsigned int where
applicable. This fixes warnings on platforms where pointers and/or
dma_addr_t have a different size than int.

Cc: [email protected]
Signed-off-by: Laurent Pinchart <[email protected]>
Acked-by: Greg Kroah-Hartman <[email protected]>
Signed-off-by: Simon Horman <[email protected]>
drivers/tty/serial/sh-sci.c