Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 078c6ac1 authored by Lars-Peter Clausen's avatar Lars-Peter Clausen Committed by Thierry Reding
Browse files

pwm: 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().

Signed-off-by: default avatarLars-Peter Clausen <lars@metafoo.de>
Signed-off-by: default avatarThierry Reding <thierry.reding@gmail.com>
parent 6ca142ad
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);