diff options
-rw-r--r-- | drivers/mfd/ab8500-sysctrl.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/mfd/ab8500-sysctrl.c b/drivers/mfd/ab8500-sysctrl.c index cfff0b643f1b..d4a4b24be7c6 100644 --- a/drivers/mfd/ab8500-sysctrl.c +++ b/drivers/mfd/ab8500-sysctrl.c | |||
@@ -49,7 +49,8 @@ static void ab8500_power_off(void) | |||
49 | if (!psy) | 49 | if (!psy) |
50 | continue; | 50 | continue; |
51 | 51 | ||
52 | ret = psy->get_property(psy, POWER_SUPPLY_PROP_ONLINE, &val); | 52 | ret = power_supply_get_property(psy, POWER_SUPPLY_PROP_ONLINE, |
53 | &val); | ||
53 | 54 | ||
54 | if (!ret && val.intval) { | 55 | if (!ret && val.intval) { |
55 | charger_present = true; | 56 | charger_present = true; |
@@ -63,8 +64,8 @@ static void ab8500_power_off(void) | |||
63 | /* Check if battery is known */ | 64 | /* Check if battery is known */ |
64 | psy = power_supply_get_by_name("ab8500_btemp"); | 65 | psy = power_supply_get_by_name("ab8500_btemp"); |
65 | if (psy) { | 66 | if (psy) { |
66 | ret = psy->get_property(psy, POWER_SUPPLY_PROP_TECHNOLOGY, | 67 | ret = power_supply_get_property(psy, |
67 | &val); | 68 | POWER_SUPPLY_PROP_TECHNOLOGY, &val); |
68 | if (!ret && val.intval != POWER_SUPPLY_TECHNOLOGY_UNKNOWN) { | 69 | if (!ret && val.intval != POWER_SUPPLY_TECHNOLOGY_UNKNOWN) { |
69 | printk(KERN_INFO | 70 | printk(KERN_INFO |
70 | "Charger \"%s\" is connected with known battery." | 71 | "Charger \"%s\" is connected with known battery." |