From: Nicolas Ferre Date: Thu, 24 Nov 2011 21:21:14 +0000 (+0100) Subject: net/at91_ether: use gpio_is_valid for phy IRQ line X-Git-Tag: v3.3-rc1~138^2~11^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2839038bb1a72ed7ef3c39521e0ca981c9cb1534;p=pandora-kernel.git net/at91_ether: use gpio_is_valid for phy IRQ line Use the generic gpiolib gpio_is_valid() function to test if the phy IRQ line GPIO is actually provided. For non-connected or non-existing phy IRQ lines, -EINVAL value is used for phy_irq_pin field of struct at91_eth_data. Signed-off-by: Nicolas Ferre Acked-by: Jean-Christophe PLAGNIOL-VILLARD Acked-by: David S. Miller --- Reading git-diff-tree failed