]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
isdn: fix section mismatch warning for ISACVer
authorSam Ravnborg <sam@ravnborg.org>
Sun, 10 Feb 2008 07:29:28 +0000 (23:29 -0800)
committerDavid S. Miller <davem@davemloft.net>
Sun, 10 Feb 2008 07:29:28 +0000 (23:29 -0800)
Fix following warnings:
WARNING: drivers/isdn/hisax/built-in.o(.text+0x19723): Section mismatch in reference from the function ISACVersion() to the variable .devinit.data:ISACVer
WARNING: drivers/isdn/hisax/built-in.o(.text+0x2005b): Section mismatch in reference from the function setup_avm_a1_pcmcia() to the function .devinit.text:setup_isac()

ISACVer were only used from function annotated __devinit
so add same annotation to ISACVer.
One af the fererencing functions missed __devinit so add it
and kill an additional warning.

Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Acked-by: Karsten Keil <kkeil@suse.de>
Cc: Jeff Garzik <jgarzik@pobox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/isdn/hisax/avm_a1p.c
drivers/isdn/hisax/isac.c

index c87fa3f9b298f4f6aa25b338b82ff492d8a6cfde..3039c6d68fc414606240a87f397348f0a5b5917d 100644 (file)
@@ -213,8 +213,7 @@ AVM_card_msg(struct IsdnCardState *cs, int mt, void *arg)
        return 0;
 }
 
-int
-setup_avm_a1_pcmcia(struct IsdnCard *card)
+int __devinit setup_avm_a1_pcmcia(struct IsdnCard *card)
 {
        u_char model, vers;
        struct IsdnCardState *cs = card->cs;
index bd6c61ebdbab8bc4bc3a4497a613e955b245fd43..07b1673122b8a8a6d34cb431cb2073281af78a24 100644 (file)
@@ -27,8 +27,7 @@ static char *ISACVer[] __devinitdata =
 {"2086/2186 V1.1", "2085 B1", "2085 B2",
  "2085 V2.3"};
 
-void
-ISACVersion(struct IsdnCardState *cs, char *s)
+void __devinit ISACVersion(struct IsdnCardState *cs, char *s)
 {
        int val;