Skip to contentSkip to conversation

serial: pxa: prepare/unprepare clocks

PATCH Superseded Dmitry Eremin-Solenikov 1 participant 1 message Nov 15, 2014 TTY layer and serial drivers

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 serial: pxa: prepare/unprepare clocks

Change clk_enable/disable() calls to clk_prepare_enable() and clk_disable_unrepapre().

---
 drivers/tty/serial/pxa.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/tty/serial/pxa.c +2 -2
index 21b7d8b8..2f4c329 100644
@@ -647,7 +647,7 @@ serial_pxa_console_write(struct console *co, const char *s, unsigned int count)
 	unsigned long flags;
 	int locked = 1;
 
-	clk_enable(up->clk);
+	clk_prepare_enable(up->clk);
 	local_irq_save(flags);
 	if (up->port.sysrq)
 		locked = 0;
@@ -674,7 +674,7 @@ serial_pxa_console_write(struct console *co, const char *s, unsigned int count)
 	if (locked)
 		spin_unlock(&up->port.lock);
 	local_irq_restore(flags);
-	clk_disable(up->clk);
+	clk_disable_unprepare(up->clk);
 
 }
 
Signature · 1 line
2.1.1