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:21:56 -0400 |
commit | be7fbe6a8b4dd5b75db5a600bcd8de87f4761d85 (patch) | |
tree | c2201883f0d796a646e7654ae51d6893df5bdc77 /drivers/i2c/busses | |
parent | c4df5000413a667fb8c67dd5589d964cc5730d91 (diff) |
i2c: designware-plat: 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/busses')
-rw-r--r-- | drivers/i2c/busses/i2c-designware-platdrv.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/i2c/busses/i2c-designware-platdrv.c b/drivers/i2c/busses/i2c-designware-platdrv.c index dec939aca588..f7549b612ca5 100644 --- a/drivers/i2c/busses/i2c-designware-platdrv.c +++ b/drivers/i2c/busses/i2c-designware-platdrv.c | |||
@@ -170,9 +170,6 @@ static int dw_i2c_probe(struct platform_device *pdev) | |||
170 | of_i2c_register_devices(adap); | 170 | of_i2c_register_devices(adap); |
171 | acpi_i2c_register_devices(adap); | 171 | acpi_i2c_register_devices(adap); |
172 | 172 | ||
173 | /* Increase reference counter */ | ||
174 | get_device(&pdev->dev); | ||
175 | |||
176 | pm_runtime_set_autosuspend_delay(&pdev->dev, 1000); | 173 | pm_runtime_set_autosuspend_delay(&pdev->dev, 1000); |
177 | pm_runtime_use_autosuspend(&pdev->dev); | 174 | pm_runtime_use_autosuspend(&pdev->dev); |
178 | pm_runtime_set_active(&pdev->dev); | 175 | pm_runtime_set_active(&pdev->dev); |
@@ -188,7 +185,6 @@ static int dw_i2c_remove(struct platform_device *pdev) | |||
188 | pm_runtime_get_sync(&pdev->dev); | 185 | pm_runtime_get_sync(&pdev->dev); |
189 | 186 | ||
190 | i2c_del_adapter(&dev->adapter); | 187 | i2c_del_adapter(&dev->adapter); |
191 | put_device(&pdev->dev); | ||
192 | 188 | ||
193 | i2c_dw_disable(dev); | 189 | i2c_dw_disable(dev); |
194 | 190 | ||