Skip to contentSkip to conversation

drivers/net/hamradio/dmascc.c: fix section mismatch

PATCH New Adrian Bunk 1 participant 1 message Jun 26, 2006

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

PATCH 1/1 drivers/net/hamradio/dmascc.c: fix section mismatch

dev_setup() is using the __initdata variables ax25_broadcast and ax25_test.

Since the only caller of dev_setup() (setup_adapter()) is already __init, the solution is to make dev_setup() __init, too.

drivers/net/hamradio/dmascc.c renamed from drivers/net/hamradio/dmascc.c.old +1 -1
@@ -436,7 +436,7 @@
 module_init(dmascc_init);
 module_exit(dmascc_exit);
 
-static void dev_setup(struct net_device *dev)
+static void __init dev_setup(struct net_device *dev)
 {
 	dev->type = ARPHRD_AX25;
 	dev->hard_header_len = AX25_MAX_HEADER_LEN;