aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/tty/serial
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2012-01-03 15:36:08 -0500
committerArnd Bergmann <arnd@arndb.de>2012-01-03 15:36:08 -0500
commit8c3b2296f1aa13d7504d2c09bc819cef3759562a (patch)
treeab97efb5785f77ed83292c97ba9e5909cfee8fba /drivers/tty/serial
parent5f0a6e2d503896062f641639dacfe5055c2f593b (diff)
parente1482a1708e48add8d2f4ecc949885e0e552d9e8 (diff)
Merge branch 'imx/clk' into next/clk
* imx/clk: ARM: mxs: select HAVE_CLK_PREPARE for clock clk: add config option HAVE_CLK_PREPARE into Kconfig ASoC: mxs-saif: convert to clk_prepare/clk_unprepare video: mxsfb: convert to clk_prepare/clk_unprepare serial: mxs-auart: convert to clk_prepare/clk_unprepare net: flexcan: convert to clk_prepare/clk_unprepare mtd: gpmi-lib: convert to clk_prepare/clk_unprepare mmc: mxs-mmc: convert to clk_prepare/clk_unprepare dma: mxs-dma: convert to clk_prepare/clk_unprepare net: fec: add clk_prepare/clk_unprepare ARM: mxs: convert platform code to clk_prepare/clk_unprepare clk: add helper functions clk_prepare_enable and clk_disable_unprepare
Diffstat (limited to 'drivers/tty/serial')
-rw-r--r--drivers/tty/serial/mxs-auart.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/tty/serial/mxs-auart.c b/drivers/tty/serial/mxs-auart.c
index 7e02c9c344fe..c33500a5e032 100644
--- a/drivers/tty/serial/mxs-auart.c
+++ b/drivers/tty/serial/mxs-auart.c
@@ -424,7 +424,7 @@ static int mxs_auart_startup(struct uart_port *u)
424{ 424{
425 struct mxs_auart_port *s = to_auart_port(u); 425 struct mxs_auart_port *s = to_auart_port(u);
426 426
427 clk_enable(s->clk); 427 clk_prepare_enable(s->clk);
428 428
429 writel(AUART_CTRL0_CLKGATE, u->membase + AUART_CTRL0_CLR); 429 writel(AUART_CTRL0_CLKGATE, u->membase + AUART_CTRL0_CLR);
430 430
@@ -453,7 +453,7 @@ static void mxs_auart_shutdown(struct uart_port *u)
453 writel(AUART_INTR_RXIEN | AUART_INTR_RTIEN | AUART_INTR_CTSMIEN, 453 writel(AUART_INTR_RXIEN | AUART_INTR_RTIEN | AUART_INTR_CTSMIEN,
454 u->membase + AUART_INTR_CLR); 454 u->membase + AUART_INTR_CLR);
455 455
456 clk_disable(s->clk); 456 clk_disable_unprepare(s->clk);
457} 457}
458 458
459static unsigned int mxs_auart_tx_empty(struct uart_port *u) 459static unsigned int mxs_auart_tx_empty(struct uart_port *u)
@@ -634,7 +634,7 @@ auart_console_setup(struct console *co, char *options)
634 if (!s) 634 if (!s)
635 return -ENODEV; 635 return -ENODEV;
636 636
637 clk_enable(s->clk); 637 clk_prepare_enable(s->clk);
638 638
639 if (options) 639 if (options)
640 uart_parse_options(options, &baud, &parity, &bits, &flow); 640 uart_parse_options(options, &baud, &parity, &bits, &flow);
@@ -643,7 +643,7 @@ auart_console_setup(struct console *co, char *options)
643 643
644 ret = uart_set_options(&s->port, co, baud, parity, bits, flow); 644 ret = uart_set_options(&s->port, co, baud, parity, bits, flow);
645 645
646 clk_disable(s->clk); 646 clk_disable_unprepare(s->clk);
647 647
648 return ret; 648 return ret;
649} 649}