projects
/
platform
/
adaptation
/
renesas_rcar
/
renesas_kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6ca142a
)
pwm: jz4740: Pass device to clk_get()
author
Lars-Peter Clausen
<lars@metafoo.de>
Sat, 7 Dec 2013 17:13:15 +0000
(18:13 +0100)
committer
Thierry Reding
<thierry.reding@gmail.com>
Thu, 12 Dec 2013 12:23:23 +0000
(13:23 +0100)
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: Thierry Reding <thierry.reding@gmail.com>
drivers/pwm/pwm-jz4740.c
patch
|
blob
|
history
diff --git
a/drivers/pwm/pwm-jz4740.c
b/drivers/pwm/pwm-jz4740.c
index
0a2ede3
..
a44d890
100644
(file)
--- a/
drivers/pwm/pwm-jz4740.c
+++ b/
drivers/pwm/pwm-jz4740.c
@@
-171,7
+171,7
@@
static int jz4740_pwm_probe(struct platform_device *pdev)
if (!jz4740)
return -ENOMEM;
- jz4740->clk = clk_get(
NULL
, "ext");
+ jz4740->clk = clk_get(
&pdev->dev
, "ext");
if (IS_ERR(jz4740->clk))
return PTR_ERR(jz4740->clk);