Commit aaedeb6f authored by Wolfram Sang's avatar Wolfram Sang

i2c: designware-pci: drop superfluous {get|put}_device

Driver core already takes care of refcounting, no need to do this on
driver level again.
Signed-off-by: default avatarWolfram Sang <wsa@the-dreams.de>
Tested-by: default avatarMika Westerberg <mika.westerberg@linux.intel.com>
parent be7fbe6a
...@@ -288,9 +288,6 @@ static int i2c_dw_pci_probe(struct pci_dev *pdev, ...@@ -288,9 +288,6 @@ static int i2c_dw_pci_probe(struct pci_dev *pdev,
return r; return r;
} }
/* Increase reference counter */
get_device(&pdev->dev);
pm_runtime_set_autosuspend_delay(&pdev->dev, 1000); pm_runtime_set_autosuspend_delay(&pdev->dev, 1000);
pm_runtime_use_autosuspend(&pdev->dev); pm_runtime_use_autosuspend(&pdev->dev);
pm_runtime_allow(&pdev->dev); pm_runtime_allow(&pdev->dev);
...@@ -307,7 +304,6 @@ static void i2c_dw_pci_remove(struct pci_dev *pdev) ...@@ -307,7 +304,6 @@ static void i2c_dw_pci_remove(struct pci_dev *pdev)
pm_runtime_get_noresume(&pdev->dev); pm_runtime_get_noresume(&pdev->dev);
i2c_del_adapter(&dev->adapter); i2c_del_adapter(&dev->adapter);
put_device(&pdev->dev);
} }
/* work with hotplug and coldplug */ /* work with hotplug and coldplug */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment