Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5f314970 authored by Lars-Peter Clausen's avatar Lars-Peter Clausen Committed by Wim Van Sebroeck
Browse files

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: default avatarLars-Peter Clausen <lars@metafoo.de>
Signed-off-by: default avatarWim Van Sebroeck <wim@iguana.be>
parent 6638f4e5
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);