* [PATCH 1/1] serial/mpc52xx_uart: fix psc clock name for mpc512x
@ 2013-03-12 21:17 Matteo Facchinetti
2013-03-12 21:29 ` Anatolij Gustschin
0 siblings, 1 reply; 2+ messages in thread
From: Matteo Facchinetti @ 2013-03-12 21:17 UTC (permalink / raw)
To: linuxppc-dev; +Cc: Matteo Facchinetti, Anatolij Gustschin
From: Matteo Facchinetti <engineering@sirius-es.it>
On platform mpc512x, PSC clock name registered by clk_register()
(clock.c:703) has _mclk suffix.
In mpc512x uart device driver, PSC clock name has _clk suffix.
So change PSC clock name in UART device driver using registered clock.
Signed-off-by: Matteo Facchinetti <engineering@sirius-es.it>
---
drivers/tty/serial/mpc52xx_uart.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/tty/serial/mpc52xx_uart.c b/drivers/tty/serial/mpc52xx_uart.c
index c0e1fad..018bad9 100644
--- a/drivers/tty/serial/mpc52xx_uart.c
+++ b/drivers/tty/serial/mpc52xx_uart.c
@@ -550,7 +550,7 @@ static int mpc512x_psc_clock(struct uart_port *port, int enable)
return 0;
psc_num = (port->mapbase & 0xf00) >> 8;
- snprintf(clk_name, sizeof(clk_name), "psc%d_clk", psc_num);
+ snprintf(clk_name, sizeof(clk_name), "psc%d_mclk", psc_num);
psc_clk = clk_get(port->dev, clk_name);
if (IS_ERR(psc_clk)) {
dev_err(port->dev, "Failed to get PSC clock entry!\n");
--
1.7.10.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-03-12 21:29 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-12 21:17 [PATCH 1/1] serial/mpc52xx_uart: fix psc clock name for mpc512x Matteo Facchinetti
2013-03-12 21:29 ` Anatolij Gustschin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).