diff options
-rw-r--r-- | drivers/net/ethernet/freescale/fec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/freescale/fec.c b/drivers/net/ethernet/freescale/fec.c index 9c1d0594895c..2bbe6a519bf4 100644 --- a/drivers/net/ethernet/freescale/fec.c +++ b/drivers/net/ethernet/freescale/fec.c | |||
@@ -996,7 +996,7 @@ static int fec_enet_mii_init(struct platform_device *pdev) | |||
996 | * mdio interface in board design, and need to be configured by | 996 | * mdio interface in board design, and need to be configured by |
997 | * fec0 mii_bus. | 997 | * fec0 mii_bus. |
998 | */ | 998 | */ |
999 | if ((id_entry->driver_data & FEC_QUIRK_ENET_MAC) && pdev->id) { | 999 | if ((id_entry->driver_data & FEC_QUIRK_ENET_MAC) && pdev->id > 0) { |
1000 | /* fec1 uses fec0 mii_bus */ | 1000 | /* fec1 uses fec0 mii_bus */ |
1001 | fep->mii_bus = fec0_mii_bus; | 1001 | fep->mii_bus = fec0_mii_bus; |
1002 | return 0; | 1002 | return 0; |