Skip to contentSkip to conversation

pwm: jz4740: Pass device to clk_get

PATCH New Lars-Peter Clausen 1 participant 1 message May 12, 2013

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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

---
 drivers/pwm/pwm-jz4740.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/pwm/pwm-jz4740.c +1 -1
index 0a2ede3..a44d890 100644
@@ -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