diff options
author | Shawn Guo <shawn.guo@linaro.org> | 2011-09-23 04:12:47 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-09-23 19:55:26 +0200 |
commit | c828827f8426f2cd8e37315c59ae406534a16d48 (patch) | |
tree | bed57a3190f377d9aa5846ab85a949ff2a321a76 /drivers/net/irda/sa1100_ir.c | |
parent | net/fec: fec_reset_phy() does not need to always succeed (diff) | |
download | linux-c828827f8426f2cd8e37315c59ae406534a16d48.tar.xz linux-c828827f8426f2cd8e37315c59ae406534a16d48.zip |
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>
Diffstat (limited to 'drivers/net/irda/sa1100_ir.c')
0 files changed, 0 insertions, 0 deletions