Commit 7740ac6a authored by Sam Ravnborg's avatar Sam Ravnborg Committed by David S. Miller

isdn: fix section mismatch warning in hfc_sx.c

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: default avatarSam Ravnborg <sam@ravnborg.org>
Acked-by: default avatarKarsten Keil <kkeil@suse.de>
Cc: Jeff Garzik <jgarzik@pobox.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 954415e3
...@@ -1330,8 +1330,7 @@ hfcsx_bh(struct work_struct *work) ...@@ -1330,8 +1330,7 @@ hfcsx_bh(struct work_struct *work)
/********************************/ /********************************/
/* called for card init message */ /* called for card init message */
/********************************/ /********************************/
static void __devinit static void inithfcsx(struct IsdnCardState *cs)
inithfcsx(struct IsdnCardState *cs)
{ {
cs->setstack_d = setstack_hfcsx; cs->setstack_d = setstack_hfcsx;
cs->BC_Send_Data = &hfcsx_send_data; cs->BC_Send_Data = &hfcsx_send_data;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment