devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] pwm: atmel-pwm: clock can not unprepare after successfully register
@ 2013-12-19  3:42 Bo Shen
  2013-12-20  9:50 ` Thierry Reding
  0 siblings, 1 reply; 2+ messages in thread
From: Bo Shen @ 2013-12-19  3:42 UTC (permalink / raw)
  To: thierry.reding
  Cc: nicolas.ferre, plagnioj, alexandre.belloni, linux-pwm,
	linux-arm-kernel, devicetree, Bo Shen

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

Signed-off-by: Bo Shen <voice.shen@atmel.com>
---
 drivers/pwm/pwm-atmel.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/pwm/pwm-atmel.c b/drivers/pwm/pwm-atmel.c
index 657e90a..bf4144a 100644
--- a/drivers/pwm/pwm-atmel.c
+++ b/drivers/pwm/pwm-atmel.c
@@ -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;
-- 
1.7.9.5


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] pwm: atmel-pwm: clock can not unprepare after successfully register
  2013-12-19  3:42 [PATCH] pwm: atmel-pwm: clock can not unprepare after successfully register Bo Shen
@ 2013-12-20  9:50 ` Thierry Reding
  0 siblings, 0 replies; 2+ messages in thread
From: Thierry Reding @ 2013-12-20  9:50 UTC (permalink / raw)
  To: Bo Shen
  Cc: nicolas.ferre, plagnioj, alexandre.belloni, linux-pwm,
	linux-arm-kernel, devicetree

[-- Attachment #1: Type: text/plain, Size: 321 bytes --]

On Thu, Dec 19, 2013 at 11:42:22AM +0800, Bo Shen wrote:
> When the PWM controller is registered successfully, the clock can not
> unprepare, so fix it.
> 
> Signed-off-by: Bo Shen <voice.shen@atmel.com>
> ---
>  drivers/pwm/pwm-atmel.c |    2 ++
>  1 file changed, 2 insertions(+)

Applied, thanks.

Thierry

[-- Attachment #2: Type: application/pgp-signature, Size: 836 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-12-20  9:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-19  3:42 [PATCH] pwm: atmel-pwm: clock can not unprepare after successfully register Bo Shen
2013-12-20  9:50 ` Thierry Reding

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).