This patch removes clock enable routine for baudrate.
On Exynos5 and Exynos7, uart baudrate clock will be either
sclk or divider of sclk which is parent clock of sclk.
So, we don't need to enable baudrate clock. Because
when we enable sclk, baudrate clock is also enabled.
Change-Id: I3316cac79559746f8a4c27c844bc793743fe5ee6
Signed-off-by: Youngmin Nam <youngmin.nam@samsung.com>
if (IS_ERR(clk))
return;
- /* check to see if we need to change clock source */
-
+ /* setting clock for baud rate */
if (ourport->baudclk != clk) {
- s3c24xx_serial_setsource(port, clk_sel);
-
- if (!IS_ERR(ourport->baudclk)) {
- clk_disable_unprepare(ourport->baudclk);
- ourport->baudclk = ERR_PTR(-EINVAL);
- }
-
- clk_prepare_enable(clk);
-
ourport->baudclk = clk;
ourport->baudclk_rate = clk ? clk_get_rate(clk) : 0;
}