提交 5f314970 编写于 作者: L Lars-Peter Clausen 提交者: Wim Van Sebroeck

watchdog: jz4740: Pass device to clk_get

In preparation to switching the jz4740 clk driver to the common clk framework
make sure to pass the device to clk_get().
Signed-off-by: NLars-Peter Clausen <lars@metafoo.de>
Signed-off-by: NWim Van Sebroeck <wim@iguana.be>
上级 6638f4e5
......@@ -177,7 +177,7 @@ static int jz4740_wdt_probe(struct platform_device *pdev)
goto err_out;
}
drvdata->rtc_clk = clk_get(NULL, "rtc");
drvdata->rtc_clk = clk_get(&pdev->dev, "rtc");
if (IS_ERR(drvdata->rtc_clk)) {
dev_err(&pdev->dev, "cannot find RTC clock\n");
ret = PTR_ERR(drvdata->rtc_clk);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册