From: Russell King - ARM Linux Date: Sat, 28 Nov 2009 00:13:23 +0000 (+0000) Subject: NET: smc91x: Fix irq flags X-Git-Tag: v2.6.32~40^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d5ccd67bb77ced5249067d05171992a7d5020393;p=pandora-kernel.git NET: smc91x: Fix irq flags smc91x.h defines SMC_IRQ_FLAGS to be -1 when it wants the interrupt flags to be taken from the resource structure. However, d280ead changed this to checking for non-zero resource flags. Unfortunately, this means that on some platforms, we end up passing '-1' to request_irq rather than the desired result. Combine the two conditions into one so that the IRQ flags are taken from the resource if either SMC_IRQ_FLAGS is -1 or the resource flags specify an interrupt trigger. This restores network on at least the Versatile platform. Signed-off-by: Russell King Acked-by: Eric Miao Signed-off-by: David S. Miller --- Reading git-diff-tree failed