X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=cpu%2Fmips%2Fau1x00_eth.c;h=6272a3aac119dd34be822b0391fd680e844fb596;hb=48ab1509254a4c175e4f65c478a978928ffe09ec;hp=aeb96622812944072bd7c9da7234041cc30455b8;hpb=8bde63eb3f79d68f693201528dafc8ae7aa087de;p=u-boot diff --git a/cpu/mips/au1x00_eth.c b/cpu/mips/au1x00_eth.c index aeb9662281..6272a3aac1 100644 --- a/cpu/mips/au1x00_eth.c +++ b/cpu/mips/au1x00_eth.c @@ -23,9 +23,7 @@ */ #include -#ifdef CONFIG_SOC_AU1X00 - -#if defined(CFG_DISCOVER_PHY) +#if defined(CONFIG_SYS_DISCOVER_PHY) #error "PHY not supported yet" /* We just assume that we are running 100FD for now */ /* We all use switches, right? ;-) */ @@ -285,7 +283,7 @@ int au1x00_enet_initialize(bd_t *bis){ if ((dev = (struct eth_device*)malloc(sizeof *dev)) == NULL) { puts ("malloc failed\n"); - return 0; + return -1; } memset(dev, 0, sizeof *dev); @@ -307,5 +305,3 @@ int au1x00_enet_initialize(bd_t *bis){ return 1; } - -#endif /* CONFIG_SOC_AU1X00 */