linux/drivers/net/ethernet
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
..
3com typhoon: convert to SKB paged frag API. 2011-09-22 16:04:17 -04:00
8390
adaptec starfire: convert to SKB paged frag API. 2011-09-22 16:04:15 -04:00
adi
aeroflex
alteon
amd
apple
atheros
broadcom
brocade
cadence
chelsio
cirrus
cisco
davicom
dec
dlink
emulex
faraday
freescale net/fec: fix fec1 check in fec_enet_mii_init() 2011-09-23 13:55:26 -04:00
fujitsu
hp
i825xx
ibm
icplus
intel ixgb: finish conversion to ndo_fix_features 2011-09-23 13:55:25 -04:00
marvell sky2: convert to SKB paged frag API. 2011-09-22 16:04:15 -04:00
mellanox
micrel
microchip
myricom
natsemi
neterion s2io: convert to SKB paged frag API. 2011-09-22 16:04:15 -04:00
nuvoton
nvidia
octeon
oki-semi
packetengines
pasemi
qlogic
racal
rdc
realtek r8169: jumbo fixes. 2011-09-22 11:35:26 +02:00
renesas
seeq seeq: fix compile breakage on s390 2011-09-23 13:45:47 -04:00
sfc sfc: convert to SKB paged frag API. 2011-09-22 16:04:15 -04:00
sgi
sis
smsc
stmicro stmmac: convert to SKB paged frag API. 2011-09-22 16:04:16 -04:00
sun sunhme: convert to SKB paged frag API. 2011-09-22 16:04:16 -04:00
tehuti tehuti: convert to SKB paged frag API. 2011-09-22 16:04:16 -04:00
ti
tile
toshiba
tundra tsi108: convert to SKB paged frag API. 2011-09-22 16:04:16 -04:00
via via-velocity: convert to SKB paged frag API. 2011-09-22 16:04:17 -04:00
xilinx
xircom
xscale
dnet.c
dnet.h
ethoc.c
fealnx.c
jme.c
jme.h
Kconfig
korina.c
lantiq_etop.c
Makefile
mipsnet.c
netx-eth.c
s6gmac.c