Skip to content
Snippets Groups Projects
Commit be7fbe6a authored by Wolfram Sang's avatar Wolfram Sang
Browse files

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: default avatarWolfram Sang <wsa@the-dreams.de>
Tested-by: default avatarMika Westerberg <mika.westerberg@linux.intel.com>
parent c4df5000
No related branches found
No related tags found
No related merge requests found
......@@ -170,9 +170,6 @@ static int dw_i2c_probe(struct platform_device *pdev)
of_i2c_register_devices(adap);
acpi_i2c_register_devices(adap);
/* Increase reference counter */
get_device(&pdev->dev);
pm_runtime_set_autosuspend_delay(&pdev->dev, 1000);
pm_runtime_use_autosuspend(&pdev->dev);
pm_runtime_set_active(&pdev->dev);
......@@ -188,7 +185,6 @@ static int dw_i2c_remove(struct platform_device *pdev)
pm_runtime_get_sync(&pdev->dev);
i2c_del_adapter(&dev->adapter);
put_device(&pdev->dev);
i2c_dw_disable(dev);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment