aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pwm/pwm-lpss-pci.c
diff options
context:
space:
mode:
authorUwe Kleine-König <[email protected]>2021-04-07 08:01:55 +0000
committerThierry Reding <[email protected]>2021-06-28 11:18:25 +0000
commitd1e487b7a3c5f8144156b37d45fc7e724e752a05 (patch)
treefa4720eb858e560a13d3451c4106132b6177eda0 /drivers/pwm/pwm-lpss-pci.c
parentpwm: Add a device-managed function to add PWM chips (diff)
downloadkernel-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-pci.c')
-rw-r--r--drivers/pwm/pwm-lpss-pci.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/pwm/pwm-lpss-pci.c b/drivers/pwm/pwm-lpss-pci.c
index cf749ea0de9f..c893ec3d2fb4 100644
--- a/drivers/pwm/pwm-lpss-pci.c
+++ b/drivers/pwm/pwm-lpss-pci.c
@@ -69,12 +69,8 @@ static int pwm_lpss_probe_pci(struct pci_dev *pdev,
static void pwm_lpss_remove_pci(struct pci_dev *pdev)
{
- struct pwm_lpss_chip *lpwm = pci_get_drvdata(pdev);
-
pm_runtime_forbid(&pdev->dev);
pm_runtime_get_sync(&pdev->dev);
-
- pwm_lpss_remove(lpwm);
}
#ifdef CONFIG_PM