pwm: lpss: pci: Move to use pcim_enable_device()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Tue, 19 Aug 2014 16:17:36 +0000 (19:17 +0300)
committerThierry Reding <thierry.reding@gmail.com>
Fri, 22 Aug 2014 22:25:51 +0000 (00:25 +0200)
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>
drivers/pwm/pwm-lpss-pci.c

index 1bfdd89..cf20d2b 100644 (file)
@@ -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[] = {