Commit c7752351 authored by Mark Brown's avatar Mark Brown Committed by Samuel Ortiz

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: default avatarStephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: default avatarSamuel Ortiz <sameo@openedhand.com>
parent 7acb706c
...@@ -1217,7 +1217,7 @@ int wm8350_device_init(struct wm8350 *wm8350, int irq, ...@@ -1217,7 +1217,7 @@ int wm8350_device_init(struct wm8350 *wm8350, int irq,
mutex_init(&wm8350->irq_mutex); mutex_init(&wm8350->irq_mutex);
INIT_WORK(&wm8350->irq_work, wm8350_irq_worker); INIT_WORK(&wm8350->irq_work, wm8350_irq_worker);
if (irq != NO_IRQ) { if (irq) {
ret = request_irq(irq, wm8350_irq, 0, ret = request_irq(irq, wm8350_irq, 0,
"wm8350", wm8350); "wm8350", wm8350);
if (ret != 0) { if (ret != 0) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment