watchdog: imx: use clk_get to acquire the watchdog clock

Use clk_get to acquire the watchdog clock and also avoid hardcoding the clock name.

Signed-off-by: Fabio Estevam <[email protected]>
Signed-off-by: Sascha Hauer <[email protected]>
This commit is contained in:
Fabio Estevam 2010-12-07 14:16:04 -02:00 • committed by Sascha Hauer
commit 2c1f4672f0
8 changed files with 9 additions and 9 deletions

View file

@ -270,7 +270,7 @@ static int __init imx2_wdt_probe(struct platform_device *pdev)
return -ENOMEM;
}
imx2_wdt.clk = clk_get_sys("imx-wdt.0", NULL);
imx2_wdt.clk = clk_get(&pdev->dev, NULL);
if (IS_ERR(imx2_wdt.clk)) {
dev_err(&pdev->dev, "can't get Watchdog clock\n");
return PTR_ERR(imx2_wdt.clk);