net/fec: don't request invalid IRQ
authorLothar Waßmann <LW@KARO-electronics.de>
Wed, 7 Dec 2011 21:59:28 +0000 (21:59 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 9 Dec 2011 00:51:20 +0000 (19:51 -0500)
commit86f9f2c81c44223b1be129d0b15cf6edac2a5278
treeda0ba2ebf0c897484d10b0a155caa1e194f4e06f
parent6ea0722fb8cdeacc774733c259d33bf45529e91b
net/fec: don't request invalid IRQ

prevent calling request_irq() with a known invalid IRQ number and
preserve the return value of the platform_get_irq() function

Signed-off-by: Lothar Waßmann <LW@KARO-electronics.de>
Acked-by: Shawn Guo <shawn.guo@linaro.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/freescale/fec.c