net/at91_ether: use gpio_is_valid for phy IRQ line
authorNicolas Ferre <nicolas.ferre@atmel.com>
Thu, 24 Nov 2011 21:21:14 +0000 (22:21 +0100)
committerNicolas Ferre <nicolas.ferre@atmel.com>
Fri, 16 Dec 2011 12:11:21 +0000 (13:11 +0100)
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 <nicolas.ferre@atmel.com>
Acked-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Acked-by: David S. Miller <davem@davemloft.net>

No differences found