summaryrefslogtreecommitdiffstats
path: root/drivers/power/abx500_chargalg.c
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2013-05-06 06:20:15 +0200
committerAnton Vorontsov <anton@enomsg.org>2013-06-07 02:13:09 +0200
commitddeeb8f973bbe3bebac78e78c234ff18bfb00bf0 (patch)
treeaabd503f293fa563134ceb97d4982ab1a3df332b /drivers/power/abx500_chargalg.c
parent88pm860x_charger: Remove unnecessary platform_set_drvdata() (diff)
downloadlinux-ddeeb8f973bbe3bebac78e78c234ff18bfb00bf0.tar.xz
linux-ddeeb8f973bbe3bebac78e78c234ff18bfb00bf0.zip
ab8500_bm: Remove unnecessary platform_set_drvdata()
The driver core clears the driver data to NULL after device_release or on probe failure, since commit 0998d0631001288a5974afc0b2a5f568bcdecb4d (device-core: Ensure drvdata = NULL when no driver is bound). Thus, it is not needed to manually clear the device driver data to NULL. Signed-off-by: Jingoo Han <jg1.han@samsung.com> Acked-by: Lee Jones <lee.jones@linaro.org> Signed-off-by: Anton Vorontsov <anton@enomsg.org>
Diffstat (limited to 'drivers/power/abx500_chargalg.c')
-rw-r--r--drivers/power/abx500_chargalg.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/power/abx500_chargalg.c b/drivers/power/abx500_chargalg.c
index 9863e423602c..6d2723664a01 100644
--- a/drivers/power/abx500_chargalg.c
+++ b/drivers/power/abx500_chargalg.c
@@ -2035,7 +2035,6 @@ static int abx500_chargalg_remove(struct platform_device *pdev)
destroy_workqueue(di->chargalg_wq);
power_supply_unregister(&di->chargalg_psy);
- platform_set_drvdata(pdev, NULL);
return 0;
}