Skip to content

Commit

Permalink
pwm: jz4740: Pass device to clk_get()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Lars-Peter Clausen authored and Thierry Reding committed Dec 12, 2013
1 parent 6ca142a commit 078c6ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/pwm/pwm-jz4740.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 078c6ac

Please sign in to comment.