serial: altera_uart: Use of_property_read_u32 instead of open-coding it
authorTobias Klauser <tklauser@distanz.ch>
Wed, 9 Sep 2015 18:34:12 +0000 (20:34 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 4 Oct 2015 16:47:49 +0000 (17:47 +0100)
commitd144aff1363a332e43be3cb431f6f8600a449cdc
treeb378371f2babbd95da26e4002396bf011a4fb504
parentacccab429be7fd83987214c50cfde057ea71d118
serial: altera_uart: Use of_property_read_u32 instead of open-coding it

Use of_property_read_u32 instead of of_get_property with return value
checks and endianness conversion. Also remove the !CONFIG_OF
implementation of altera_uart_get_of_uartclk as of_property_read_u32
will return a non-zero value for !CONFIG_OF.

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/altera_uart.c