]> 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)
commit2290a219233dca9c81394bb1465acfc369ac2989
treef3b0b6f88fffa9e9be3395d7b4d655767a608194
parent1abf1cb33d8fb28d50e33462824efe2422ed8d3e
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