提交 f4e64333 编写于 作者: S Sam Ravnborg 提交者: David S. Miller

isdn: fix section mismatch warning for ISACVer

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: NSam Ravnborg <sam@ravnborg.org>
Acked-by: NKarsten Keil <kkeil@suse.de>
Cc: Jeff Garzik <jgarzik@pobox.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 2fddb6e2
...@@ -213,8 +213,7 @@ AVM_card_msg(struct IsdnCardState *cs, int mt, void *arg) ...@@ -213,8 +213,7 @@ AVM_card_msg(struct IsdnCardState *cs, int mt, void *arg)
return 0; return 0;
} }
int int __devinit setup_avm_a1_pcmcia(struct IsdnCard *card)
setup_avm_a1_pcmcia(struct IsdnCard *card)
{ {
u_char model, vers; u_char model, vers;
struct IsdnCardState *cs = card->cs; struct IsdnCardState *cs = card->cs;
......
...@@ -27,8 +27,7 @@ static char *ISACVer[] __devinitdata = ...@@ -27,8 +27,7 @@ static char *ISACVer[] __devinitdata =
{"2086/2186 V1.1", "2085 B1", "2085 B2", {"2086/2186 V1.1", "2085 B1", "2085 B2",
"2085 V2.3"}; "2085 V2.3"};
void void __devinit ISACVersion(struct IsdnCardState *cs, char *s)
ISACVersion(struct IsdnCardState *cs, char *s)
{ {
int val; int val;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册