pwm: tiehrpwm: fix clock imbalance in probe error path
authorJohan Hovold <johan@kernel.org>
Thu, 20 Jul 2017 10:48:17 +0000 (12:48 +0200)
committerThierry Reding <thierry.reding@gmail.com>
Mon, 21 Aug 2017 06:11:26 +0000 (08:11 +0200)
commite2b5602af76dec75f474e4173afb4215007ecfa5
treea6925922eef953f6d8c3062bd776ae4d65b66b9f
parentc7fdd3f52944b81d807ce7a5fde7d1ca8a2a0919
pwm: tiehrpwm: fix clock imbalance in probe error path

Make sure to unprepare the clock before returning on late probe errors.

Fixes: b388f15fd14c ("pwm: pwm-tiehrpwm: Use clk_enable/disable instead clk_prepare/unprepare.")
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
drivers/pwm/pwm-tiehrpwm.c