isdn: fix section mismatch warning in hfc_sx.c
authorSam Ravnborg <[email protected]>
Sun, 10 Feb 2008 07:27:41 +0000 (23:27 -0800)
committerDavid S. Miller <[email protected]>
Sun, 10 Feb 2008 07:27:41 +0000 (23:27 -0800)
Fix the following warning:
WARNING: drivers/isdn/hisax/built-in.o(.text+0x35818): Section mismatch in reference from the function hfcsx_card_msg() to the function .devinit.text:inithfcsx()

hfcsx_card_msg() may be called outside __devinit context.
Following the program logic is looks like the CARD_INIT branch
will only be taken under __devinit context but to be consistent
remove the __devinit annotation of inithfcsx() so we
do not mix non-__devinit and __devinit code.

Signed-off-by: Sam Ravnborg <[email protected]>
Acked-by: Karsten Keil <[email protected]>
Cc: Jeff Garzik <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
drivers/isdn/hisax/hfc_sx.c

index 4fd09d21a27f587c52e9fd1485ab7132dff1151b..05482d2688e3f1742607147eea1c09992172a5e9 100644 (file)
@@ -1330,8 +1330,7 @@ hfcsx_bh(struct work_struct *work)
 /********************************/
 /* called for card init message */
 /********************************/
-static void __devinit
-inithfcsx(struct IsdnCardState *cs)
+static void inithfcsx(struct IsdnCardState *cs)
 {
        cs->setstack_d = setstack_hfcsx;
        cs->BC_Send_Data = &hfcsx_send_data;