aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/isdn
diff options
context:
space:
mode:
authorSam Ravnborg <sam@ravnborg.org>2008-02-10 02:27:41 -0500
committerDavid S. Miller <davem@davemloft.net>2008-02-10 02:27:41 -0500
commit7740ac6a7cf8158e828b4cbd4fc5226e53b5d9a2 (patch)
treec77b14a59212ed6bd815d38a003f2f73f52a96c1 /drivers/isdn
parent954415e33ed6cfa932c13e8c2460bd05e50723b5 (diff)
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: 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>
Diffstat (limited to 'drivers/isdn')
-rw-r--r--drivers/isdn/hisax/hfc_sx.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/isdn/hisax/hfc_sx.c b/drivers/isdn/hisax/hfc_sx.c
index 4fd09d21a27f..05482d2688e3 100644
--- a/drivers/isdn/hisax/hfc_sx.c
+++ b/drivers/isdn/hisax/hfc_sx.c
@@ -1330,8 +1330,7 @@ hfcsx_bh(struct work_struct *work)
1330/********************************/ 1330/********************************/
1331/* called for card init message */ 1331/* called for card init message */
1332/********************************/ 1332/********************************/
1333static void __devinit 1333static void inithfcsx(struct IsdnCardState *cs)
1334inithfcsx(struct IsdnCardState *cs)
1335{ 1334{
1336 cs->setstack_d = setstack_hfcsx; 1335 cs->setstack_d = setstack_hfcsx;
1337 cs->BC_Send_Data = &hfcsx_send_data; 1336 cs->BC_Send_Data = &hfcsx_send_data;