diff options
| author | Uwe Kleine-König <[email protected]> | 2021-04-07 08:01:55 +0000 |
|---|---|---|
| committer | Thierry Reding <[email protected]> | 2021-06-28 11:18:25 +0000 |
| commit | d1e487b7a3c5f8144156b37d45fc7e724e752a05 (patch) | |
| tree | fa4720eb858e560a13d3451c4106132b6177eda0 /drivers/pwm/pwm-lpss-platform.c | |
| parent | pwm: Add a device-managed function to add PWM chips (diff) | |
| download | kernel-d1e487b7a3c5f8144156b37d45fc7e724e752a05.tar.gz kernel-d1e487b7a3c5f8144156b37d45fc7e724e752a05.zip | |
pwm: lpss: Simplify using devm_pwmchip_add()
Signed-off-by: Uwe Kleine-König <[email protected]>
Signed-off-by: Thierry Reding <[email protected]>
Diffstat (limited to 'drivers/pwm/pwm-lpss-platform.c')
| -rw-r--r-- | drivers/pwm/pwm-lpss-platform.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/pwm/pwm-lpss-platform.c b/drivers/pwm/pwm-lpss-platform.c index 986786be1e49..928570430cef 100644 --- a/drivers/pwm/pwm-lpss-platform.c +++ b/drivers/pwm/pwm-lpss-platform.c @@ -85,10 +85,8 @@ static int pwm_lpss_probe_platform(struct platform_device *pdev) static int pwm_lpss_remove_platform(struct platform_device *pdev) { - struct pwm_lpss_chip *lpwm = platform_get_drvdata(pdev); - pm_runtime_disable(&pdev->dev); - return pwm_lpss_remove(lpwm); + return 0; } static const struct acpi_device_id pwm_lpss_acpi_match[] = { |
