diff options
author | Adrian Bunk <bunk@stusta.de> | 2006-06-26 12:31:46 +0200 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2006-06-26 22:03:24 -0400 |
commit | e2fdbc039aeac4ce614ee29f4b14bcef5ba000dd (patch) | |
tree | e93ede959c7f42d6aa34a00abdc9d378d9ed6832 | |
parent | 600991b003039bd86d89aed0a88de89987ccbcd1 (diff) | |
download | op-kernel-dev-e2fdbc039aeac4ce614ee29f4b14bcef5ba000dd.zip op-kernel-dev-e2fdbc039aeac4ce614ee29f4b14bcef5ba000dd.tar.gz |
[PATCH] 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.
Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
-rw-r--r-- | drivers/net/hamradio/dmascc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/hamradio/dmascc.c b/drivers/net/hamradio/dmascc.c index 0d5fccc..c9a46b8 100644 --- a/drivers/net/hamradio/dmascc.c +++ b/drivers/net/hamradio/dmascc.c @@ -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; |