Skip to content

Commit a08be12

Browse files
Uwe Kleine-Königthierryreding
authored andcommitted
pwm: cros-ec: Don't check the return code of pwmchip_remove()
pwmchip_remove() returns always 0. Don't use the value to make it possible to eventually change the function to return void. Also the driver core ignores the return value of cros_ec_pwm_remove(). Signed-off-by: Uwe Kleine-König <[email protected]> Signed-off-by: Thierry Reding <[email protected]>
1 parent b433424 commit a08be12

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

drivers/pwm/pwm-cros-ec.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,9 @@ static int cros_ec_pwm_remove(struct platform_device *dev)
280280
struct cros_ec_pwm_device *ec_pwm = platform_get_drvdata(dev);
281281
struct pwm_chip *chip = &ec_pwm->chip;
282282

283-
return pwmchip_remove(chip);
283+
pwmchip_remove(chip);
284+
285+
return 0;
284286
}
285287

286288
#ifdef CONFIG_OF

0 commit comments

Comments
 (0)