summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2014-08-19 19:17:36 +0300
committerThierry Reding <thierry.reding@gmail.com>2014-08-23 00:25:51 +0200
commit90927fe9a001340304e0c37dee578e4432b1744e (patch)
tree959dbc9df63500b753bedb91ca57eef95f012719 /drivers
parentc558e39e14c2372394f49e07fbe94e9708b615cb (diff)
downloadop-kernel-dev-90927fe9a001340304e0c37dee578e4432b1744e.zip
op-kernel-dev-90927fe9a001340304e0c37dee578e4432b1744e.tar.gz
pwm: lpss: pci: Move to use pcim_enable_device()
Let's use managed functions for this driver. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Reviewed-by: Mika Westerberg <mika.westerberg@linux.intel.com> Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/pwm/pwm-lpss-pci.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/pwm/pwm-lpss-pci.c b/drivers/pwm/pwm-lpss-pci.c
index 1bfdd89..cf20d2b 100644
--- a/drivers/pwm/pwm-lpss-pci.c
+++ b/drivers/pwm/pwm-lpss-pci.c
@@ -23,7 +23,7 @@ static int pwm_lpss_probe_pci(struct pci_dev *pdev,
struct pwm_lpss_chip *lpwm;
int err;
- err = pci_enable_device(pdev);
+ err = pcim_enable_device(pdev);
if (err < 0)
return err;
@@ -41,7 +41,6 @@ static void pwm_lpss_remove_pci(struct pci_dev *pdev)
struct pwm_lpss_chip *lpwm = pci_get_drvdata(pdev);
pwm_lpss_remove(lpwm);
- pci_disable_device(pdev);
}
static const struct pci_device_id pwm_lpss_pci_ids[] = {
OpenPOWER on IntegriCloud