of serial port driver - add clk_get_rate() support
commit0bbeb3c3e84bc963d1c66661e082d207023b0e5c
authorMurali Karicheri <m-karicheri2@ti.com>
Mon, 22 Oct 2012 15:58:01 +0000 (22 11:58 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 25 Oct 2012 18:32:29 +0000 (25 11:32 -0700)
tree7cde25a865c1acd1bc030da4816ea78603484ec8
parentcadf74869013dc309bde50ed446f56d33a6a9806
of serial port driver - add clk_get_rate() support

Currently this driver expects the clock-frequency attribute. This
patch allows getting clock-frequency through clk driver API
clk_get_rate() if clock-frequency attribute is not defined.

So in the device bindings for serial device, one can add clocks
phandle to refer to the clk device to get the rate.

Signed-off-by: Murali Karicheri <m-karicheri2@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/of_serial.c