Skip to contentSkip to conversation

pwm: atmel-pwm: clock can not unprepare after successfully register

PATCH New Bo Shen 2 participants 2 messages Dec 19, 2013 – Dec 20, 2013

Subsystems (3)
lore
Share & tools
lore

Bo Shen

author
#0 lore raw

PATCH 1/1 pwm: atmel-pwm: clock can not unprepare after successfully register

When the PWM controller is registered successfully, the clock can not unprepare, so fix it.

---
 drivers/pwm/pwm-atmel.c |    2 ++
 1 file changed, 2 insertions(+)
drivers/pwm/pwm-atmel.c +2 -0
index 657e90a..bf4144a 100644
@@ -362,6 +362,8 @@ static int atmel_pwm_probe(struct platform_device *pdev)
 
 	platform_set_drvdata(pdev, atmel_pwm);
 
+	return ret;
+
 unprepare_clk:
 	clk_unprepare(atmel_pwm->clk);
 	return ret;
Signature · 1 line
1.7.9.5
#1 lore raw

PATCH 1/1 pwm: atmel-pwm: clock can not unprepare after successfully register

Quoted 7 lines · Bo Shen

When the PWM controller is registered successfully, the clock can not unprepare, so fix it.

---
 drivers/pwm/pwm-atmel.c |    2 ++
 1 file changed, 2 insertions(+)

Applied, thanks.

Thierry
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20131220/cd8e0c63/attachment.sig>