Skip to content

Commit

Permalink
watchdog: jz4740: Pass device to clk_get
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Wim Van Sebroeck <[email protected]>
  • Loading branch information
larsclausen authored and Wim Van Sebroeck committed Jul 11, 2013
1 parent 6638f4e commit 5f31497
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/watchdog/jz4740_wdt.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 5f31497

Please sign in to comment.