提交 90927fe9 编写于 作者: A Andy Shevchenko 提交者: Thierry Reding

pwm: lpss: pci: Move to use pcim_enable_device()

Let's use managed functions for this driver.
Signed-off-by: NAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: NMika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: NThierry Reding <thierry.reding@gmail.com>
上级 c558e39e
......@@ -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[] = {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册