Commit b016b646 authored by Laurent Pinchart's avatar Laurent Pinchart Committed by Simon Horman

serial: sh-sci: Convert to clk_prepare/unprepare

Turn clk_enable() and clk_disable() calls into clk_prepare_enable() and
clk_disable_unprepare() to get ready for the migration to the common
clock framework.
Signed-off-by: default avatarLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Acked-by: default avatarMagnus Damm <damm@opensource.se>
Acked-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarSimon Horman <horms+renesas@verge.net.au>
parent caec7038
...@@ -421,9 +421,9 @@ static void sci_port_enable(struct sci_port *sci_port) ...@@ -421,9 +421,9 @@ static void sci_port_enable(struct sci_port *sci_port)
pm_runtime_get_sync(sci_port->port.dev); pm_runtime_get_sync(sci_port->port.dev);
clk_enable(sci_port->iclk); clk_prepare_enable(sci_port->iclk);
sci_port->port.uartclk = clk_get_rate(sci_port->iclk); sci_port->port.uartclk = clk_get_rate(sci_port->iclk);
clk_enable(sci_port->fclk); clk_prepare_enable(sci_port->fclk);
} }
static void sci_port_disable(struct sci_port *sci_port) static void sci_port_disable(struct sci_port *sci_port)
...@@ -439,8 +439,8 @@ static void sci_port_disable(struct sci_port *sci_port) ...@@ -439,8 +439,8 @@ static void sci_port_disable(struct sci_port *sci_port)
del_timer_sync(&sci_port->break_timer); del_timer_sync(&sci_port->break_timer);
sci_port->break_flag = 0; sci_port->break_flag = 0;
clk_disable(sci_port->fclk); clk_disable_unprepare(sci_port->fclk);
clk_disable(sci_port->iclk); clk_disable_unprepare(sci_port->iclk);
pm_runtime_put_sync(sci_port->port.dev); pm_runtime_put_sync(sci_port->port.dev);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment