diff options
Diffstat (limited to 'drivers/power')
-rw-r--r-- | drivers/power/wm8350_power.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/power/wm8350_power.c b/drivers/power/wm8350_power.c index 3839a5e1c4a7..0693902d6151 100644 --- a/drivers/power/wm8350_power.c +++ b/drivers/power/wm8350_power.c | |||
@@ -190,7 +190,7 @@ static irqreturn_t wm8350_charger_handler(int irq, void *data) | |||
190 | struct wm8350_power *power = &wm8350->power; | 190 | struct wm8350_power *power = &wm8350->power; |
191 | struct wm8350_charger_policy *policy = power->policy; | 191 | struct wm8350_charger_policy *policy = power->policy; |
192 | 192 | ||
193 | switch (irq) { | 193 | switch (irq - wm8350->irq_base) { |
194 | case WM8350_IRQ_CHG_BAT_FAIL: | 194 | case WM8350_IRQ_CHG_BAT_FAIL: |
195 | dev_err(wm8350->dev, "battery failed\n"); | 195 | dev_err(wm8350->dev, "battery failed\n"); |
196 | break; | 196 | break; |