* [PATCH] watchdog: jz4740: Pass device to clk_get
@ 2013-05-12 18:04 Lars-Peter Clausen
2013-05-26 15:38 ` Wim Van Sebroeck
0 siblings, 1 reply; 2+ messages in thread
From: Lars-Peter Clausen @ 2013-05-12 18:04 UTC (permalink / raw)
To: Wim Van Sebroeck; +Cc: linux-watchdog, linux-kernel, Lars-Peter Clausen
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>
---
drivers/watchdog/jz4740_wdt.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/watchdog/jz4740_wdt.c b/drivers/watchdog/jz4740_wdt.c
index 1cb25f6..d1afdf6 100644
--- a/drivers/watchdog/jz4740_wdt.c
+++ b/drivers/watchdog/jz4740_wdt.c
@@ -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);
--
1.8.2.1
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] watchdog: jz4740: Pass device to clk_get
2013-05-12 18:04 [PATCH] watchdog: jz4740: Pass device to clk_get Lars-Peter Clausen
@ 2013-05-26 15:38 ` Wim Van Sebroeck
0 siblings, 0 replies; 2+ messages in thread
From: Wim Van Sebroeck @ 2013-05-26 15:38 UTC (permalink / raw)
To: Lars-Peter Clausen; +Cc: linux-watchdog, linux-kernel
Hi Lars-Peter,
> 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>
> ---
> drivers/watchdog/jz4740_wdt.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
Patch added to linux-watchdog-next.
Kind regards,
Wim.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-05-26 15:38 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-05-12 18:04 [PATCH] watchdog: jz4740: Pass device to clk_get Lars-Peter Clausen
2013-05-26 15:38 ` Wim Van Sebroeck
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®