diff options
Diffstat (limited to 'drivers/power/gpio-charger.c')
-rw-r--r-- | drivers/power/gpio-charger.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/power/gpio-charger.c b/drivers/power/gpio-charger.c index 8672c9177dd7..cb2aa3195687 100644 --- a/drivers/power/gpio-charger.c +++ b/drivers/power/gpio-charger.c | |||
@@ -54,7 +54,7 @@ static int gpio_charger_get_property(struct power_supply *psy, | |||
54 | 54 | ||
55 | switch (psp) { | 55 | switch (psp) { |
56 | case POWER_SUPPLY_PROP_ONLINE: | 56 | case POWER_SUPPLY_PROP_ONLINE: |
57 | val->intval = gpio_get_value(pdata->gpio); | 57 | val->intval = gpio_get_value_cansleep(pdata->gpio); |
58 | val->intval ^= pdata->gpio_active_low; | 58 | val->intval ^= pdata->gpio_active_low; |
59 | break; | 59 | break; |
60 | default: | 60 | default: |