summaryrefslogtreecommitdiffstats
path: root/drivers/i2c
diff options
context:
space:
mode:
authorWolfram Sang <wsa@the-dreams.de>2013-04-18 15:43:07 +0200
committerWolfram Sang <wsa@the-dreams.de>2013-04-19 20:22:10 +0200
commitaaedeb6f198a44bdfa98a012cc3c07a48e126b16 (patch)
treeca0446b5c19f4244d58f92eea76bea56ec07a179 /drivers/i2c
parentbe7fbe6a8b4dd5b75db5a600bcd8de87f4761d85 (diff)
downloadop-kernel-dev-aaedeb6f198a44bdfa98a012cc3c07a48e126b16.zip
op-kernel-dev-aaedeb6f198a44bdfa98a012cc3c07a48e126b16.tar.gz
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.c4
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 c8797e2..f6ed06c 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,
return r;
}
- /* Increase reference counter */
- get_device(&pdev->dev);
-
pm_runtime_set_autosuspend_delay(&pdev->dev, 1000);
pm_runtime_use_autosuspend(&pdev->dev);
pm_runtime_allow(&pdev->dev);
@@ -307,7 +304,6 @@ static void i2c_dw_pci_remove(struct pci_dev *pdev)
pm_runtime_get_noresume(&pdev->dev);
i2c_del_adapter(&dev->adapter);
- put_device(&pdev->dev);
}
/* work with hotplug and coldplug */
OpenPOWER on IntegriCloud