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

Commit 457fd768 authored by Axel Lin's avatar Axel Lin Committed by Thierry Reding
Browse files

pwm: pwm-mxs: Return proper error if pwmchip_remove() fails

parent b50675dc
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -178,9 +178,7 @@ static int __devexit mxs_pwm_remove(struct platform_device *pdev)
{
	struct mxs_pwm_chip *mxs = platform_get_drvdata(pdev);

	pwmchip_remove(&mxs->chip);

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

static struct of_device_id mxs_pwm_dt_ids[] = {