summaryrefslogtreecommitdiff
path: root/drivers/power/intel_mid_battery.c
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2013-05-23 14:34:39 +0400
committerAnton Vorontsov <anton@enomsg.org>2013-06-07 04:30:46 +0400
commite08358792422ef0b78d7c81f333fc0803fb41cd4 (patch)
tree95607db2cbcf276d498fb68d014d0ea47e173072 /drivers/power/intel_mid_battery.c
parentc509a62c9469e2787bcacc7aba454d555732b0b6 (diff)
downloadlinux-e08358792422ef0b78d7c81f333fc0803fb41cd4.tar.xz
power: Use platform_{get,set}_drvdata()
Use the wrapper functions for getting and setting the driver data using platform_device instead of using dev_{get,set}_drvdata() with &pdev->dev, so we can directly pass a struct platform_device. Signed-off-by: Jingoo Han <jg1.han@samsung.com> Signed-off-by: Anton Vorontsov <anton@enomsg.org>
Diffstat (limited to 'drivers/power/intel_mid_battery.c')
-rw-r--r--drivers/power/intel_mid_battery.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/power/intel_mid_battery.c b/drivers/power/intel_mid_battery.c
index 18d136b443ee..4520811168ad 100644
--- a/drivers/power/intel_mid_battery.c
+++ b/drivers/power/intel_mid_battery.c
@@ -756,7 +756,7 @@ static int platform_pmic_battery_probe(struct platform_device *pdev)
static int platform_pmic_battery_remove(struct platform_device *pdev)
{
- struct pmic_power_module_info *pbi = dev_get_drvdata(&pdev->dev);
+ struct pmic_power_module_info *pbi = platform_get_drvdata(pdev);
free_irq(pbi->irq, pbi);
cancel_delayed_work_sync(&pbi->monitor_battery);