]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
watchdog: jz4740: Pass device to clk_get
authorLars-Peter Clausen <lars@metafoo.de>
Sun, 12 May 2013 18:04:03 +0000 (20:04 +0200)
committerWim Van Sebroeck <wim@iguana.be>
Thu, 11 Jul 2013 19:12:31 +0000 (21:12 +0200)
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>
drivers/watchdog/jz4740_wdt.c

index 1cb25f69a96dbff9b4c93b0e3eceab93798c8146..d1afdf684c18c55a5899238dc0843fee40a08cee 100644 (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);