mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
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:
parent
a96efbc1fc
commit
2c1f4672f0
8 changed files with 9 additions and 9 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue