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: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
This commit is contained in:
Lars-Peter Clausen 2013-05-12 20:04:03 +02:00 committed by Wim Van Sebroeck
parent 6638f4e5e5
commit 5f314970b2
1 changed files with 1 additions and 1 deletions

View File

@ -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);