diff options
author | Fugang Duan <B38611@freescale.com> | 2013-07-15 13:41:03 +0800 |
---|---|---|
committer | Fugang Duan <B38611@freescale.com> | 2013-07-15 14:44:06 +0800 |
commit | 8538a8d2d7481a7dce510f5bac23bd20e053e3af (patch) | |
tree | f3d1915086eb22cd07ca4614d6122598cd759eac | |
parent | a5d3c7982cb8c0327162ede83a54d34ae3000c79 (diff) |
ENGR00270996 net:fec: fix fec probe fail due to gpio_irq check error
Board files correctly define fec gpio irq to wake up wait mode since FEC
interrupt cannot connect to GPC, otherwise board files define fec gpio irq
to -1. So, fec probe function check the gpio irq to decide whether fec use
gpio irq or fec irq.
Current irq checking logic is incorrect. Correct the gpio irq checking.
Signed-off-by: Fugang Duan <B38611@freescale.com>
-rwxr-xr-x | drivers/net/fec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/fec.c b/drivers/net/fec.c index 50fe80109bab..71e0abc56216 100755 --- a/drivers/net/fec.c +++ b/drivers/net/fec.c @@ -1867,7 +1867,7 @@ fec_probe(struct platform_device *pdev) if (pdata) fep->phy_interface = pdata->phy; - if (pdata->gpio_irq < 0) { + if (pdata->gpio_irq > 0) { gpio_request(pdata->gpio_irq, "gpio_enet_irq"); gpio_direction_input(pdata->gpio_irq); |