]> err.no Git - linux-2.6/commitdiff
[ISDN]: fix section mismatch warning in enpci_card_msg
authorSam Ravnborg <sam@ravnborg.org>
Fri, 8 Feb 2008 02:20:29 +0000 (18:20 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 8 Feb 2008 02:20:29 +0000 (18:20 -0800)
Fix following warnings:
WARNING: drivers/isdn/hisax/built-in.o(.text+0x3cf50): Section mismatch in reference from the function enpci_card_msg() to the function .devinit.text:Amd7930_init()
WARNING: drivers/isdn/hisax/built-in.o(.text+0x3cf85): Section mismatch in reference from the function enpci_card_msg() to the function .devinit.text:Amd7930_init()

enpci_card_msg() can be called outside __devinit context
referenced function should not be annotated __devinit.

Remove annotation of Amd7930_init to fix this.

Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/isdn/hisax/amd7930_fn.c

index c0d7036404a5920a7404a1d7c8acd9bc591df93d..341faf58a65c5d76cdaa1ab252bb54186f5d9780 100644 (file)
@@ -744,8 +744,7 @@ dbusy_timer_handler(struct IsdnCardState *cs)
 
 
 
-void __devinit
-Amd7930_init(struct IsdnCardState *cs)
+void Amd7930_init(struct IsdnCardState *cs)
 {
     WORD *ptr;
     BYTE cmd, cnt;