Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <u.kleine-koenig@pengutronix.de>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>

authored by

Uwe Kleine-König and committed by
Thierry Reding
a08be127 b4334246

+3 -1
+3 -1
drivers/pwm/pwm-cros-ec.c
··· 280 280 struct cros_ec_pwm_device *ec_pwm = platform_get_drvdata(dev); 281 281 struct pwm_chip *chip = &ec_pwm->chip; 282 282 283 - return pwmchip_remove(chip); 283 + pwmchip_remove(chip); 284 + 285 + return 0; 284 286 } 285 287 286 288 #ifdef CONFIG_OF