]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
[ALSA] aoa: feature gpio layer: fix IRQ access
authorJohannes Berg <johannes@sipsolutions.net>
Tue, 25 Jul 2006 14:12:51 +0000 (16:12 +0200)
committerJaroslav Kysela <perex@suse.cz>
Thu, 3 Aug 2006 13:21:20 +0000 (15:21 +0200)
commit2566d36ab4f0b90141bb59a5f7342255751fbf45
tree086251f284de9f559235164e3ab0594e6456b2ec
parent59feddb25f9d925e86ee22596802405788bc050f
[ALSA] aoa: feature gpio layer: fix IRQ access

The IRQ rework caused some hiccups here, in some cases we call
get_irq without a device node. This patch makes it catch that
case and return NO_IRQ when it happens, along with changing the
place where the irq is checked to check for NO_IRQ instead of -1.
Acked-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
sound/aoa/core/snd-aoa-gpio-feature.c