unsigned long flags, temp;
struct tty_struct *tty;
- clk_enable(sport->clk);
-
#ifndef CONFIG_SERIAL_CORE_CONSOLE
imx_setup_ufcr(sport, 0);
#endif
writel(temp, sport->port.membase + UCR4);
}
spin_unlock_irqrestore(&sport->port.lock, flags);
- clk_disable(sport->clk);
}
static void
goto deinit;
platform_set_drvdata(pdev, &sport->port);
- clk_disable(sport->clk);
return 0;
deinit:
if (pdata && pdata->exit)
clk_put(sport->clk);
}
+ clk_disable(sport->clk);
+
if (pdata && pdata->exit)
pdata->exit(pdev);