From e9146e9727cf2f9f1bb0e8ef81fc00f3a53ffebe Mon Sep 17 00:00:00 2001 From: =?utf8?q?=E9=BB=84=E6=B6=9B?= Date: Sat, 24 Apr 2010 03:50:20 +0000 Subject: [PATCH] fix clock name from uart_clk to uart, uartclk get use clk_get_rate --- drivers/serial/rk2818_serial.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/serial/rk2818_serial.c b/drivers/serial/rk2818_serial.c index 7560660c50b5..839c637b7dd3 100644 --- a/drivers/serial/rk2818_serial.c +++ b/drivers/serial/rk2818_serial.c @@ -600,10 +600,10 @@ static int __devinit rk2818_serial_probe(struct platform_device *pdev) port->dev = &pdev->dev; rk2818_port = UART_TO_RK2818(port); - rk2818_port->clk = clk_get(&pdev->dev, "uart_clk"); + rk2818_port->clk = clk_get(&pdev->dev, "uart"); if (unlikely(IS_ERR(rk2818_port->clk))) return PTR_ERR(rk2818_port->clk); - port->uartclk = 24000*1000; ///clk_get_rate(rk2818_port->clk); + port->uartclk = clk_get_rate(rk2818_port->clk); resource = platform_get_resource(pdev, IORESOURCE_MEM, 0); if (unlikely(!resource)) -- 2.34.1