Skip to content

Commit

Permalink
mfd: Don't use NO_IRQ in WM8350
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Mark Brown authored and Samuel Ortiz committed Oct 19, 2008
1 parent 7acb706 commit c775235
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/mfd/wm8350-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -1217,7 +1217,7 @@ int wm8350_device_init(struct wm8350 *wm8350, int irq,

mutex_init(&wm8350->irq_mutex);
INIT_WORK(&wm8350->irq_work, wm8350_irq_worker);
if (irq != NO_IRQ) {
if (irq) {
ret = request_irq(irq, wm8350_irq, 0,
"wm8350", wm8350);
if (ret != 0) {
Expand Down

0 comments on commit c775235

Please sign in to comment.