Commit:     cd8d627a6b66d9755637b4dad2083864a9bfce9a
Parent:     7cc08b55fc476a9474e4dc9da41071b5dc2b406e
Author:     Randy Dunlap <[EMAIL PROTECTED]>
AuthorDate: Tue Feb 5 03:04:05 2008 -0800
Committer:  David S. Miller <[EMAIL PROTECTED]>
CommitDate: Tue Feb 5 03:04:05 2008 -0800

    hamradio: fix dmascc section mismatch
    hw[] is used in both init and exit functions so it cannot be initdata 
    mismatch is when CONFIG_MODULES=n and CONFIG_DMASCC=y).
    WARNING: vmlinux.o(.exit.text+0xba7): Section mismatch: reference to (between 'dmascc_exit' and 'sixpack_exit_driver')
    Signed-off-by: Randy Dunlap <[EMAIL PROTECTED]>
    Cc: Klaus Kudielka <[EMAIL PROTECTED]>
    Cc: Sam Ravnborg <[EMAIL PROTECTED]>
    Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
    Signed-off-by: David S. Miller <[EMAIL PROTECTED]>
 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 11b83da..e04bf99 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);
 static int io[MAX_NUM_DEVS] __initdata = { 0, };
-/* Beware! hw[] is also used in cleanup_module(). */
-static struct scc_hardware hw[NUM_TYPES] __initdata_or_module = HARDWARE;
+/* Beware! hw[] is also used in dmascc_exit(). */
+static struct scc_hardware hw[NUM_TYPES] = HARDWARE;
 /* Global variables */
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to