android_kernel_xiaomi_sm8350/drivers/isdn/hisax
Al Viro 56d74dd5f7 tricky one: hisax sections
a) hisax_init_pcmcia() needs to be defined only if we have
   CONFIG_HOTPLUG (no PCMCIA support otherwise) and can be declared
   __devinit.

b) HiSax_inithardware() can go __init

c) hisax_register() is passing to checkcard() full-blown hisax_cs_setup_card():
	checkcard(i, id, NULL, hisax_d_if->owner, hisax_cs_setup_card);
   The problem with it is that
	* hisax_cs_setup_card() is __devinit
	* hisax_register() is not
	* hisax_cs_setup_card() is a switch from hell, calling a lot of
	  setup_some_weirdcard() depending on card->typ.  _These_ are also
	  __devinit.

   However, in hisax_register() we have card->typ equal to
   ISDN_CTYPE_DYNAMIC, which reduces hisax_cs_setup_card() to "nevermind
   all that crap, just do nothing and return 2".  So we add a
   trimmed-down callback doing just that and passed to checkcard() by
   hisax_register().  _This_ is non-init (we can stand the impact on
   .text size).

Voila - no section warnings from drivers/isdn

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2008-11-30 10:03:37 -08:00
..
amd7930_fn.c
amd7930_fn.h
arcofi.c
arcofi.h
asuscom.c isdn: replace remaining __FUNCTION__ occurrences 2008-04-28 08:58:34 -07:00
avm_a1.c
avm_a1p.c
avm_pci.c isdn: replace remaining __FUNCTION__ occurrences 2008-04-28 08:58:34 -07:00
avma1_cs.c pcmcia: deprecate CS_SUCCESS 2008-08-23 02:29:26 +02:00
bkm_a4t.c
bkm_a8.c
bkm_ax.h
callc.c
config.c tricky one: hisax sections 2008-11-30 10:03:37 -08:00
diva.c isdn: replace remaining __FUNCTION__ occurrences 2008-04-28 08:58:34 -07:00
elsa_cs.c pcmcia: deprecate CS_SUCCESS 2008-08-23 02:29:26 +02:00
elsa_ser.c
elsa.c isdn: replace remaining __FUNCTION__ occurrences 2008-04-28 08:58:34 -07:00
enternow_pci.c
fsm.c
fsm.h
gazel.c
hfc4s8s_l1.c
hfc4s8s_l1.h
hfc_2bds0.c
hfc_2bds0.h
hfc_2bs0.c
hfc_2bs0.h
hfc_pci.c
hfc_pci.h
hfc_sx.c isdn: replace remaining __FUNCTION__ occurrences 2008-04-28 08:58:34 -07:00
hfc_sx.h
hfc_usb.c isdn: replace remaining __FUNCTION__ occurrences 2008-04-28 08:58:34 -07:00
hfc_usb.h
hfcscard.c isdn: replace remaining __FUNCTION__ occurrences 2008-04-28 08:58:34 -07:00
hisax_cfg.h
hisax_debug.h isdn: replace remaining __FUNCTION__ occurrences 2008-04-28 08:58:34 -07:00
hisax_fcpcipnp.c pnp: fix the fcpnp_driver declaration to only exist if CONFIG_PNP=y 2008-07-26 12:00:02 -07:00
hisax_fcpcipnp.h
hisax_if.h
hisax_isac.c
hisax_isac.h
hisax.h
hscx_irq.c
hscx.c
hscx.h
icc.c
icc.h
ipac.h
ipacx.c
ipacx.h
isac.c
isac.h
isar.c
isar.h
isdnhdlc.c
isdnhdlc.h
isdnl1.c
isdnl1.h
isdnl2.c
isdnl2.h
isdnl3.c
isdnl3.h
isurf.c
ix1_micro.c isdn: replace remaining __FUNCTION__ occurrences 2008-04-28 08:58:34 -07:00
jade_irq.c
jade.c
jade.h
Kconfig
l3_1tr6.c
l3_1tr6.h
l3dss1.c
l3dss1.h
l3ni1.c
l3ni1.h
lmgr.c
Makefile
mic.c
netjet.c
netjet.h
niccy.c isdn: replace remaining __FUNCTION__ occurrences 2008-04-28 08:58:34 -07:00
nj_s.c
nj_u.c
q931.c
s0box.c
saphir.c
sedlbauer_cs.c pcmcia: pcmcia_config_loop() improvement by passing vcc 2008-08-23 01:22:52 +02:00
sedlbauer.c isdn: replace remaining __FUNCTION__ occurrences 2008-04-28 08:58:34 -07:00
sportster.c
st5481_b.c Rename WARN() to WARNING() to clear the namespace 2008-07-25 10:53:29 -07:00
st5481_d.c Rename WARN() to WARNING() to clear the namespace 2008-07-25 10:53:29 -07:00
st5481_init.c
st5481_usb.c Rename WARN() to WARNING() to clear the namespace 2008-07-25 10:53:29 -07:00
st5481.h Rename WARN() to WARNING() to clear the namespace 2008-07-25 10:53:29 -07:00
tei.c
teleint.c
teles0.c
teles3.c isdn: replace remaining __FUNCTION__ occurrences 2008-04-28 08:58:34 -07:00
teles_cs.c pcmcia: deprecate CS_SUCCESS 2008-08-23 02:29:26 +02:00
telespci.c
w6692.c
w6692.h