Skip to contentSkip to conversation

Makefile fix for FORE 200e and a typo in lec.c

PATCH New Jan Rekorajski 1 participant 1 message Jan 2, 2001

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Makefile fix for FORE 200e and a typo in lec.c

Hi,
The Fore dirver in 2.4.0-prerelease just does not build with the current makefile. This patch fixes it (works for me):

drivers/atm/Makefile renamed from drivers/atm/Makefile.orig +1 -1
@@ -46,7 +46,7 @@
   endif
 endif
 
-obj-$(CONFIG_ATM_FORE200E) += fore200e.o $(FORE200E_FW_OBJS)
+obj-$(CONFIG_ATM_FORE200E) += fore_200e.o
 
 include $(TOPDIR)/Rules.make
 

Second thing, there is a typo in net/atm/lec.c:

net/atm/lec.c renamed from net/atm/lec.c.orig +1 -1
@@ -857,7 +857,7 @@
         for (i = 0; i < MAX_LEC_ITF; i++) {
                 if (dev_lec[i] != NULL) {
                         priv = (struct lec_priv *)dev_lec[i]->priv;
-                        unregister_trdev(dev_lec[i]);
+                        unregister_netdev(dev_lec[i]);
                         kfree(dev_lec[i]);
                         dev_lec[i] = NULL;
                 }

And, just in case you missed it, modular LEC fix:

net/atm/Makefile renamed from net/atm/Makefile.orig +7 -1
@@ -33,7 +33,13 @@
 obj-y += proc.o
 endif
 
-obj-$(CONFIG_ATM_LANE) += lec.o lane_mpoa_init.o
+ifneq ($(CONFIG_ATM_LANE),n)
+ifneq ($(CONFIG_ATM_LANE),)
+obj-y += lane_mpoa_init.o
+endif
+endif
+
+obj-$(CONFIG_ATM_LANE) += lec.o
 obj-$(CONFIG_ATM_MPOA) += mpoa.o
 
 include $(TOPDIR)/Rules.make

Jan

Signature · 7 lines
Jan Rękorajski            |  ALL SUSPECTS ARE GUILTY. PERIOD!
baggins<at>mimuw.edu.pl   |  OTHERWISE THEY WOULDN'T BE SUSPECTS, WOULD THEY?
BOFH, MANIAC              |                   -- TROOPS by Kevin Rubio
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
Please read the FAQ at http://www.tux.org/lkml/