Skip to content

Commit b33f264

Browse files
Uwe Kleine-Königclaudiubeznea
authored andcommitted
pwm: atmel-hlcdc: 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 atmel_hlcdc_pwm_remove() and considers the device removed anyhow. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
1 parent 6e42de4 commit b33f264

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

drivers/pwm/pwm-atmel-hlcdc.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -281,11 +281,8 @@ static int atmel_hlcdc_pwm_probe(struct platform_device *pdev)
281281
static int atmel_hlcdc_pwm_remove(struct platform_device *pdev)
282282
{
283283
struct atmel_hlcdc_pwm *chip = platform_get_drvdata(pdev);
284-
int ret;
285284

286-
ret = pwmchip_remove(&chip->chip);
287-
if (ret)
288-
return ret;
285+
pwmchip_remove(&chip->chip);
289286

290287
clk_disable_unprepare(chip->hlcdc->periph_clk);
291288

0 commit comments

Comments
 (0)