]> git.baikalelectronics.ru Git - kernel.git/commit
tty: ar933x_uart: use the clk API to get the uart clock
authorGabor Juhos <juhosg@openwrt.org>
Wed, 28 Aug 2013 08:09:28 +0000 (10:09 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 28 Aug 2013 23:00:42 +0000 (16:00 -0700)
commit2a9952845155c785eb749892c0b4d6c131fe760d
treef3b0b6f88fffa9e9be3395d7b4d655767a608194
parentf9ef7078af6d0f3a62075e3953a47c5ec1892927
tty: ar933x_uart: use the clk API to get the uart clock

The AR933x UARTs are only used on the Atheros AR933x
SoCs. The base clock frequency of the UART is passed
to the driver via platform data. The SoC support code
implements the generic clock API, and the clock rate
can be retrieved via that.

Update the code to get the clock rate via the generic
clock API instead of using the platform data.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/Kconfig
drivers/tty/serial/ar933x_uart.c