Shawn Guo c828827f84 net/fec: fix fec1 check in fec_enet_mii_init()
In function fec_enet_mii_init(), it uses non-zero pdev->id as part
of the condition to check the second fec instance (fec1).  This works
before the driver supports device tree probe.  But in case of device
tree probe, pdev->id is -1 which is also non-zero, so the logic becomes
broken when device tree probe gets supported.

The patch change the logic to check "pdev->id > 0" as the part of the
condition for identifying fec1.

Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
2011-09-23 13:55:26 -04:00
..
2011-07-26 16:49:47 -07:00
2011-08-27 00:58:30 -07:00
2011-09-15 17:19:28 -04:00
2011-08-27 00:58:33 -07:00
2011-08-27 00:58:36 -07:00
2011-09-16 19:20:20 -04:00
2011-07-26 16:49:47 -07:00
2011-09-15 17:31:45 -04:00
2011-08-16 00:16:49 -07:00