]> git.sur5r.net Git - u-boot/commitdiff
ne2000 driver: change #ifdef to Makefile conditional compilation
authorWolfgang Denk <wd@denx.de>
Tue, 25 Mar 2008 21:50:41 +0000 (22:50 +0100)
committerWolfgang Denk <wd@denx.de>
Tue, 25 Mar 2008 21:50:41 +0000 (22:50 +0100)
Signed-off-by: Wolfgang Denk <wd@denx.de>
drivers/net/Makefile
drivers/net/ne2000.c

index 321bd08adb6b96976ca405b49e96fef03f847d8b..7d7df9cab7ef1d7668a17b141fdce66aa4499093 100644 (file)
@@ -41,7 +41,7 @@ COBJS-y += lan91c96.o
 COBJS-y += macb.o
 COBJS-y += mcffec.o
 COBJS-y += natsemi.o
-COBJS-y += ne2000.o
+COBJS-$(CONFIG_DRIVER_NE2000) += ne2000.o
 COBJS-y += netarm_eth.o
 COBJS-y += netconsole.o
 COBJS-y += ns7520_eth.o
index 49280148d2c6668b6e775a5ed4cb38712da7dc6b..36ea35b2c217df51d85406f692c15e80782f9497 100644 (file)
@@ -80,8 +80,6 @@ Add SNMP
 #include <net.h>
 #include <malloc.h>
 
-#ifdef CONFIG_DRIVER_NE2000
-
 #define mdelay(n)       udelay((n)*1000)
 /* forward definition of function used for the uboot interface */
 void uboot_push_packet_len(int len);
@@ -851,4 +849,3 @@ int eth_send(volatile void *packet, int length) {
        }
        return 0;
 }
-#endif