Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit abeaf755 authored by Thierry Reding's avatar Thierry Reding
Browse files

pwm: pxa: Propagate pwmchip_remove() error



If the pwmchip_remove() call fails, propagate the error to the driver's
remove callback. This is required to prevent the module from being
unloaded if a PWM provided by the driver is still in use.

Signed-off-by: default avatarThierry Reding <thierry.reding@avionic-design.de>
parent 45b301d2
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -190,8 +190,7 @@ static int __devexit pwm_remove(struct platform_device *pdev)
	if (chip == NULL)
		return -ENODEV;

	pwmchip_remove(&chip->chip);
	return 0;
	return pwmchip_remove(&chip->chip);
}

static struct platform_driver pwm_driver = {