diff options
Diffstat (limited to 'drivers/isdn/hisax/config.c')
-rw-r--r-- | drivers/isdn/hisax/config.c | 26 |
1 files changed, 9 insertions, 17 deletions
diff --git a/drivers/isdn/hisax/config.c b/drivers/isdn/hisax/config.c index b5edc0eeec06..bf04d2a3cf4a 100644 --- a/drivers/isdn/hisax/config.c +++ b/drivers/isdn/hisax/config.c | |||
@@ -338,11 +338,11 @@ static int io[HISAX_MAX_CARDS] = { 0, }; | |||
338 | #define IO0_IO1 | 338 | #define IO0_IO1 |
339 | #endif | 339 | #endif |
340 | #ifdef IO0_IO1 | 340 | #ifdef IO0_IO1 |
341 | static int io0[HISAX_MAX_CARDS] __devinitdata = { 0, }; | 341 | static int io0[HISAX_MAX_CARDS] = { 0, }; |
342 | static int io1[HISAX_MAX_CARDS] __devinitdata = { 0, }; | 342 | static int io1[HISAX_MAX_CARDS] = { 0, }; |
343 | #endif | 343 | #endif |
344 | static int irq[HISAX_MAX_CARDS] __devinitdata = { 0, }; | 344 | static int irq[HISAX_MAX_CARDS] = { 0, }; |
345 | static int mem[HISAX_MAX_CARDS] __devinitdata = { 0, }; | 345 | static int mem[HISAX_MAX_CARDS] = { 0, }; |
346 | static char *id = HiSaxID; | 346 | static char *id = HiSaxID; |
347 | 347 | ||
348 | MODULE_DESCRIPTION("ISDN4Linux: Driver for passive ISDN cards"); | 348 | MODULE_DESCRIPTION("ISDN4Linux: Driver for passive ISDN cards"); |
@@ -852,7 +852,7 @@ static int init_card(struct IsdnCardState *cs) | |||
852 | return 3; | 852 | return 3; |
853 | } | 853 | } |
854 | 854 | ||
855 | static int __devinit hisax_cs_setup_card(struct IsdnCard *card) | 855 | static int hisax_cs_setup_card(struct IsdnCard *card) |
856 | { | 856 | { |
857 | int ret; | 857 | int ret; |
858 | 858 | ||
@@ -1171,12 +1171,8 @@ outf_cs: | |||
1171 | return 0; | 1171 | return 0; |
1172 | } | 1172 | } |
1173 | 1173 | ||
1174 | /* Used from an exported function but calls __devinit functions. | 1174 | static int checkcard(int cardnr, char *id, int *busy_flag, |
1175 | * Tell modpost not to warn (__ref) | 1175 | struct module *lockowner, hisax_setup_func_t card_setup) |
1176 | */ | ||
1177 | static int __ref checkcard(int cardnr, char *id, int *busy_flag, | ||
1178 | struct module *lockowner, | ||
1179 | hisax_setup_func_t card_setup) | ||
1180 | { | 1176 | { |
1181 | int ret; | 1177 | int ret; |
1182 | struct IsdnCard *card = cards + cardnr; | 1178 | struct IsdnCard *card = cards + cardnr; |
@@ -1547,9 +1543,7 @@ static void __exit HiSax_exit(void) | |||
1547 | printk(KERN_INFO "HiSax module removed\n"); | 1543 | printk(KERN_INFO "HiSax module removed\n"); |
1548 | } | 1544 | } |
1549 | 1545 | ||
1550 | #ifdef CONFIG_HOTPLUG | 1546 | int hisax_init_pcmcia(void *pcm_iob, int *busy_flag, struct IsdnCard *card) |
1551 | |||
1552 | int __devinit hisax_init_pcmcia(void *pcm_iob, int *busy_flag, struct IsdnCard *card) | ||
1553 | { | 1547 | { |
1554 | u_char ids[16]; | 1548 | u_char ids[16]; |
1555 | int ret = -1; | 1549 | int ret = -1; |
@@ -1568,9 +1562,7 @@ int __devinit hisax_init_pcmcia(void *pcm_iob, int *busy_flag, struct IsdnCard * | |||
1568 | error: | 1562 | error: |
1569 | return ret; | 1563 | return ret; |
1570 | } | 1564 | } |
1571 | |||
1572 | EXPORT_SYMBOL(hisax_init_pcmcia); | 1565 | EXPORT_SYMBOL(hisax_init_pcmcia); |
1573 | #endif | ||
1574 | 1566 | ||
1575 | EXPORT_SYMBOL(HiSax_closecard); | 1567 | EXPORT_SYMBOL(HiSax_closecard); |
1576 | 1568 | ||
@@ -1917,7 +1909,7 @@ static void EChannel_proc_rcv(struct hisax_d_if *d_if) | |||
1917 | #ifdef CONFIG_PCI | 1909 | #ifdef CONFIG_PCI |
1918 | #include <linux/pci.h> | 1910 | #include <linux/pci.h> |
1919 | 1911 | ||
1920 | static struct pci_device_id hisax_pci_tbl[] __devinitdata __used = { | 1912 | static struct pci_device_id hisax_pci_tbl[] __used = { |
1921 | #ifdef CONFIG_HISAX_FRITZPCI | 1913 | #ifdef CONFIG_HISAX_FRITZPCI |
1922 | {PCI_VDEVICE(AVM, PCI_DEVICE_ID_AVM_A1) }, | 1914 | {PCI_VDEVICE(AVM, PCI_DEVICE_ID_AVM_A1) }, |
1923 | #endif | 1915 | #endif |