pwm: jz4740: Pass device to clk_get
Subsystems (2)
PATCH 1/1 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 Lars-Peter Clausen <[email protected]>
--- drivers/pwm/pwm-jz4740.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/pwm/pwm-jz4740.c +1 -1
@@ -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);
Signature · 1 line
1.8.2.1