diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2008-10-15 06:28:06 -0400 |
---|---|---|
committer | Samuel Ortiz <samuel@sortiz.org> | 2008-10-19 16:54:12 -0400 |
commit | c7752351c34d852ca0da697f812534101eecd82e (patch) | |
tree | 8bb72171c29e549e62b8c12cb54d4a8f8882b82f /drivers/mfd | |
parent | 7acb706ca97fce84bda4a902a33de2f3dae10260 (diff) |
mfd: Don't use NO_IRQ in WM8350
NO_IRQ is only defined on some architectures - the general way to test
for an invalid IRQ in the modern kernel is by comparing with zero.
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Samuel Ortiz <sameo@openedhand.com>
Diffstat (limited to 'drivers/mfd')
-rw-r--r-- | drivers/mfd/wm8350-core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mfd/wm8350-core.c b/drivers/mfd/wm8350-core.c index 25a7a5d08bce..bf87f675e7fa 100644 --- a/drivers/mfd/wm8350-core.c +++ b/drivers/mfd/wm8350-core.c | |||
@@ -1217,7 +1217,7 @@ int wm8350_device_init(struct wm8350 *wm8350, int irq, | |||
1217 | 1217 | ||
1218 | mutex_init(&wm8350->irq_mutex); | 1218 | mutex_init(&wm8350->irq_mutex); |
1219 | INIT_WORK(&wm8350->irq_work, wm8350_irq_worker); | 1219 | INIT_WORK(&wm8350->irq_work, wm8350_irq_worker); |
1220 | if (irq != NO_IRQ) { | 1220 | if (irq) { |
1221 | ret = request_irq(irq, wm8350_irq, 0, | 1221 | ret = request_irq(irq, wm8350_irq, 0, |
1222 | "wm8350", wm8350); | 1222 | "wm8350", wm8350); |
1223 | if (ret != 0) { | 1223 | if (ret != 0) { |