pwm: jz4740: Pass device to clk_get()
authorLars-Peter Clausen <lars@metafoo.de>
Sat, 7 Dec 2013 17:13:15 +0000 (18:13 +0100)
committerThierry 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

index 0a2ede3..a44d890 100644 (file)
@@ -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);