]> err.no Git - linux-2.6/commitdiff
[PATCH] drivers/net/hamradio/dmascc.c: fix section mismatch
authorAdrian Bunk <bunk@stusta.de>
Mon, 26 Jun 2006 10:31:46 +0000 (12:31 +0200)
committerJeff Garzik <jeff@garzik.org>
Tue, 27 Jun 2006 02:03:24 +0000 (22:03 -0400)
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.

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/net/hamradio/dmascc.c

index 0d5fccc984bb2cf888b785447c43c4fcc19282eb..c9a46b89942af382ec10ac71f7a3710343fd0944 100644 (file)
@@ -436,7 +436,7 @@ static int __init dmascc_init(void)
 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;