mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-24 17:40:53 +07:00
pwm: pwm-mxs: Return proper error if pwmchip_remove() fails
Signed-off-by: Axel Lin <axel.lin@gmail.com> Acked-by: Shawn Guo <shawn.guo@linaro.org> Signed-off-by: Thierry Reding <thierry.reding@avionic-design.de>
This commit is contained in:
parent
b50675dcc3
commit
457fd768ee
@ -178,9 +178,7 @@ static int __devexit mxs_pwm_remove(struct platform_device *pdev)
|
|||||||
{
|
{
|
||||||
struct mxs_pwm_chip *mxs = platform_get_drvdata(pdev);
|
struct mxs_pwm_chip *mxs = platform_get_drvdata(pdev);
|
||||||
|
|
||||||
pwmchip_remove(&mxs->chip);
|
return pwmchip_remove(&mxs->chip);
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static struct of_device_id mxs_pwm_dt_ids[] = {
|
static struct of_device_id mxs_pwm_dt_ids[] = {
|
||||||
|
Loading…
Reference in New Issue
Block a user