diff options
author | Randy Dunlap <randy.dunlap@oracle.com> | 2008-02-05 06:04:05 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-02-05 06:04:05 -0500 |
commit | cd8d627a6b66d9755637b4dad2083864a9bfce9a (patch) | |
tree | b165e00bd21b9dacfa3a7e4dde4c6d060a614a2d /drivers | |
parent | 7cc08b55fc476a9474e4dc9da41071b5dc2b406e (diff) |
hamradio: fix dmascc section mismatch
hw[] is used in both init and exit functions so it cannot be initdata (section
mismatch is when CONFIG_MODULES=n and CONFIG_DMASCC=y).
WARNING: vmlinux.o(.exit.text+0xba7): Section mismatch: reference to .init.data: (between 'dmascc_exit' and 'sixpack_exit_driver')
Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
Cc: Klaus Kudielka <klaus.kudielka@gmx.net>
Cc: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/hamradio/dmascc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/hamradio/dmascc.c b/drivers/net/hamradio/dmascc.c index 11b83dae00ac..e04bf9926441 100644 --- a/drivers/net/hamradio/dmascc.c +++ b/drivers/net/hamradio/dmascc.c | |||
@@ -262,8 +262,8 @@ static void tm_isr(struct scc_priv *priv); | |||
262 | 262 | ||
263 | static int io[MAX_NUM_DEVS] __initdata = { 0, }; | 263 | static int io[MAX_NUM_DEVS] __initdata = { 0, }; |
264 | 264 | ||
265 | /* Beware! hw[] is also used in cleanup_module(). */ | 265 | /* Beware! hw[] is also used in dmascc_exit(). */ |
266 | static struct scc_hardware hw[NUM_TYPES] __initdata_or_module = HARDWARE; | 266 | static struct scc_hardware hw[NUM_TYPES] = HARDWARE; |
267 | 267 | ||
268 | 268 | ||
269 | /* Global variables */ | 269 | /* Global variables */ |