diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2010-01-06 19:24:25 (GMT) |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2010-03-07 21:16:58 (GMT) |
commit | 59f25070df0325067d7916b467ad15725657fedc (patch) | |
tree | 7cd89ed390a6ddd464aa7baec14e08f3ac541b1e /drivers | |
parent | ecf926bcda5ba1da7269dcaa71a1b6920dc48349 (diff) | |
download | linux-fsl-qoriq-59f25070df0325067d7916b467ad15725657fedc.tar.xz |
mfd: Update WM8350 drivers for changed interrupt numbers
The headphone detect and charger are using the IRQ numbers so need
to take account of irq_base with the genirq conversion. I obviously
picked the wrong system for initial testing.
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'drivers')
-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 3839a5e..0693902 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) struct wm8350_power *power = &wm8350->power; struct wm8350_charger_policy *policy = power->policy; - switch (irq) { + switch (irq - wm8350->irq_base) { case WM8350_IRQ_CHG_BAT_FAIL: dev_err(wm8350->dev, "battery failed\n"); break; |