diff options
author | Wolfram Sang <wsa@the-dreams.de> | 2013-04-18 09:43:07 -0400 |
---|---|---|
committer | Wolfram Sang <wsa@the-dreams.de> | 2013-04-19 14:22:10 -0400 |
commit | aaedeb6f198a44bdfa98a012cc3c07a48e126b16 (patch) | |
tree | ca0446b5c19f4244d58f92eea76bea56ec07a179 /drivers/i2c | |
parent | be7fbe6a8b4dd5b75db5a600bcd8de87f4761d85 (diff) |
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: Wolfram Sang <wsa@the-dreams.de>
Tested-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Diffstat (limited to 'drivers/i2c')
-rw-r--r-- | drivers/i2c/busses/i2c-designware-pcidrv.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/i2c/busses/i2c-designware-pcidrv.c b/drivers/i2c/busses/i2c-designware-pcidrv.c index c8797e22459c..f6ed06c966ee 100644 --- a/drivers/i2c/busses/i2c-designware-pcidrv.c +++ b/drivers/i2c/busses/i2c-designware-pcidrv.c | |||
@@ -288,9 +288,6 @@ static int i2c_dw_pci_probe(struct pci_dev *pdev, | |||
288 | return r; | 288 | return r; |
289 | } | 289 | } |
290 | 290 | ||
291 | /* Increase reference counter */ | ||
292 | get_device(&pdev->dev); | ||
293 | |||
294 | pm_runtime_set_autosuspend_delay(&pdev->dev, 1000); | 291 | pm_runtime_set_autosuspend_delay(&pdev->dev, 1000); |
295 | pm_runtime_use_autosuspend(&pdev->dev); | 292 | pm_runtime_use_autosuspend(&pdev->dev); |
296 | pm_runtime_allow(&pdev->dev); | 293 | pm_runtime_allow(&pdev->dev); |
@@ -307,7 +304,6 @@ static void i2c_dw_pci_remove(struct pci_dev *pdev) | |||
307 | pm_runtime_get_noresume(&pdev->dev); | 304 | pm_runtime_get_noresume(&pdev->dev); |
308 | 305 | ||
309 | i2c_del_adapter(&dev->adapter); | 306 | i2c_del_adapter(&dev->adapter); |
310 | put_device(&pdev->dev); | ||
311 | } | 307 | } |
312 | 308 | ||
313 | /* work with hotplug and coldplug */ | 309 | /* work with hotplug and coldplug */ |