Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 119319
b: refs/heads/master
c: 56d74dd
h: refs/heads/master
i:
  119317: 21eb928
  119315: 1b6ab1d
  119311: ce91e7f
v: v3
  • Loading branch information
Al Viro authored and Linus Torvalds committed Nov 30, 2008
1 parent 1011249 commit 833f01f
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8419641450edc838a6ce7cdf0f99d262bf0af2d5
refs/heads/master: 56d74dd5f7ad8b6b0979ce915d51cf03bcc57267
16 changes: 13 additions & 3 deletions trunk/drivers/isdn/hisax/config.c
Original file line number Diff line number Diff line change
Expand Up @@ -1213,7 +1213,7 @@ static void HiSax_shiftcards(int idx)
memcpy(&cards[i], &cards[i + 1], sizeof(cards[i]));
}

static int HiSax_inithardware(int *busy_flag)
static int __init HiSax_inithardware(int *busy_flag)
{
int foundcards = 0;
int i = 0;
Expand Down Expand Up @@ -1542,7 +1542,9 @@ static void __exit HiSax_exit(void)
printk(KERN_INFO "HiSax module removed\n");
}

int hisax_init_pcmcia(void *pcm_iob, int *busy_flag, struct IsdnCard *card)
#ifdef CONFIG_HOTPLUG

int __devinit hisax_init_pcmcia(void *pcm_iob, int *busy_flag, struct IsdnCard *card)
{
u_char ids[16];
int ret = -1;
Expand All @@ -1563,6 +1565,8 @@ int hisax_init_pcmcia(void *pcm_iob, int *busy_flag, struct IsdnCard *card)
}

EXPORT_SYMBOL(hisax_init_pcmcia);
#endif

EXPORT_SYMBOL(HiSax_closecard);

#include "hisax_if.h"
Expand All @@ -1580,6 +1584,11 @@ static void hisax_bc_close(struct BCState *bcs);
static void hisax_bh(struct work_struct *work);
static void EChannel_proc_rcv(struct hisax_d_if *d_if);

static int hisax_setup_card_dynamic(struct IsdnCard *card)
{
return 2;
}

int hisax_register(struct hisax_d_if *hisax_d_if, struct hisax_b_if *b_if[],
char *name, int protocol)
{
Expand All @@ -1599,7 +1608,8 @@ int hisax_register(struct hisax_d_if *hisax_d_if, struct hisax_b_if *b_if[],
cards[i].protocol = protocol;
sprintf(id, "%s%d", name, i);
nrcards++;
retval = checkcard(i, id, NULL, hisax_d_if->owner, hisax_cs_setup_card);
retval = checkcard(i, id, NULL, hisax_d_if->owner,
hisax_setup_card_dynamic);
if (retval == 0) { // yuck
cards[i].typ = 0;
nrcards--;
Expand Down

0 comments on commit 833f01f

Please sign in to comment.