Skip to contentSkip to conversation

watchdog: jz4740: Pass device to clk_get

PATCH Superseded Lars-Peter Clausen 2 participants 2 messages May 12, 2013 – May 26, 2013

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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().

---
 drivers/watchdog/jz4740_wdt.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/watchdog/jz4740_wdt.c +1 -1
index 1cb25f6..d1afdf6 100644
@@ -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);
Signature · 1 line
1.8.2.1
#1 lore raw

Hi Lars-Peter,

Quoted 8 lines

In preparation to switching the jz4740 clk driver to the common clk framework make sure to pass the device to clk_get().

---
 drivers/watchdog/jz4740_wdt.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch added to linux-watchdog-next.

Kind regards,
Wim.