Skip to content

Commit 51b9f2f

Browse files
Uwe Kleine-Königthierryreding
authored andcommitted
pwm: imx27: Propagate errors in .get_state() to the caller
.get_state() can return an error indication. Make use of it to propagate failing hardware accesses. Acked-by: Conor Dooley <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Uwe Kleine-König <[email protected]> Signed-off-by: Thierry Reding <[email protected]>
1 parent ee02c1c commit 51b9f2f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/pwm/pwm-imx27.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ static int pwm_imx27_get_state(struct pwm_chip *chip,
128128

129129
ret = pwm_imx27_clk_prepare_enable(imx);
130130
if (ret < 0)
131-
return 0;
131+
return ret;
132132

133133
val = readl(imx->mmio_base + MX3_PWMCR);
134134

0 commit comments

Comments
 (0)