BCM63XX: prevent second enet registration on BCM6338
PATCH 1/1 BCM63XX: prevent second enet registration on BCM6338
This SoC has only one Ethernet MAC, so prevent registration of a second one.
Signed-off-by Florian Fainelli <[email protected]>
---
arch/mips/bcm63xx/dev-enet.c +3 -0
@@ -104,6 +104,9 @@ int __init bcm63xx_enet_register(int unit,if (unit >1 )return -ENODEV ; +if (unit ==1 &&BCMCPU_IS_6338 ()) +return -ENODEV ; +if (!shared_device_registered) { shared_res[0 ].start =bcm63xx_regset_address (RSET_ENETDMA ); shared_res[0 ].end = shared_res[0 ].start;
Ralf Baechle
AppliedQuoted 1 line · Florian Fainelli
This SoC has only one Ethernet MAC, so prevent registration of a second one.
Thanks, applied.
Ralf