serial: ucc_uart: use of_property_read_u32() in ucc_uart_probe()
authorRasmus Villemoes <linux@rasmusvillemoes.dk>
Thu, 28 Nov 2019 14:55:37 +0000 (15:55 +0100)
committerLi Yang <leoyang.li@nxp.com>
Mon, 9 Dec 2019 19:54:35 +0000 (13:54 -0600)
commit89ad26f5f8bbcbdb54096bc8786d9b6f0acb79e6
treea8fc6b066300b6cf8b74a4674cf1a24cb59df998
parent002dedc5e933f6683b48de2f5702089c65b86bd1
serial: ucc_uart: use of_property_read_u32() in ucc_uart_probe()

For this to work correctly on little-endian hosts, don't access the
device-tree properties directly in native endianness, but use the
of_property_read_u32() helper.

Reviewed-by: Timur Tabi <timur@kernel.org>
Acked-by: Timur Tabi <timur@kernel.org>
Signed-off-by: Rasmus Villemoes <linux@rasmusvillemoes.dk>
Signed-off-by: Li Yang <leoyang.li@nxp.com>
drivers/tty/serial/ucc_uart.c