Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6a683356 authored by Bo Shen's avatar Bo Shen Committed by Thierry Reding
Browse files

pwm: atmel-pwm: Do not unprepare clock after successful registration



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

Signed-off-by: default avatarBo Shen <voice.shen@atmel.com>
Signed-off-by: default avatarThierry Reding <thierry.reding@gmail.com>
parent 3f958fe7
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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;