]> git.hungrycats.org Git - linux/commitdiff
[PATCH] isdn: use __init for ICCVersion()
authorRandy Dunlap <rddunlap@osdl.org>
Mon, 28 Feb 2005 02:33:01 +0000 (18:33 -0800)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Mon, 28 Feb 2005 02:33:01 +0000 (18:33 -0800)
ICCVersion() is only used by init code & can be marked __init;

Error: ./drivers/isdn/hisax/icc.o .text refers to 000000000000014a R_X86_64_32S      .init.data

Signed-off-by: Randy Dunlap <rddunlap@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/isdn/hisax/icc.c
drivers/isdn/hisax/icc.h

index 60b7e133a6b7dea612f9b2489176e82a78aee62c..dcf31f83c6000da39c2bd84cd888ad12b6bcb942 100644 (file)
@@ -27,7 +27,7 @@
 static char *ICCVer[] __initdata =
 {"2070 A1/A3", "2070 B1", "2070 B2/B3", "2070 V2.4"};
 
-void
+void __init
 ICCVersion(struct IsdnCardState *cs, char *s)
 {
        int val;
index e7f593967e43ab9b9fb975992c36cbb2e066df1a..b3bb3d5de53214e291f9d54d77b7f28cb7287bab 100644 (file)
@@ -65,7 +65,7 @@
 #define ICC_IND_AIL    0xE
 #define ICC_IND_DC     0xF
 
-extern void ICCVersion(struct IsdnCardState *cs, char *s);
+extern void __init ICCVersion(struct IsdnCardState *cs, char *s);
 extern void initicc(struct IsdnCardState *cs);
 extern void icc_interrupt(struct IsdnCardState *cs, u_char val);
 extern void clear_pending_icc_ints(struct IsdnCardState *cs);