Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 2 additions & 8 deletions pwm-dmec.c
Original file line number Diff line number Diff line change
Expand Up @@ -879,15 +879,9 @@ static int dmec_pwm_probe(struct platform_device *pdev)
static int dmec_pwm_remove(struct platform_device *pdev)
{
struct dmec_pwm_chip *dmecPwm = platform_get_drvdata(pdev);
int err;

err = pwmchip_remove(&dmecPwm->chip);
if(err < 0)
{
dev_err(&pdev->dev, "remove pwm driver failed: %d\n", err);
return err;
}
pwmchip_remove(&dmecPwm->chip);
dev_dbg(&pdev->dev, "pwm driver removed.");

return 0;
}

Expand Down