summaryrefslogtreecommitdiffstats
path: root/drivers/isdn/hisax
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>1999-02-15 02:15:32 +0000
committerRalf Baechle <ralf@linux-mips.org>1999-02-15 02:15:32 +0000
commit86464aed71025541805e7b1515541aee89879e33 (patch)
treee01a457a4912a8553bc65524aa3125d51f29f810 /drivers/isdn/hisax
parent88f99939ecc6a95a79614574cb7d95ffccfc3466 (diff)
Merge with Linux 2.2.1.
Diffstat (limited to 'drivers/isdn/hisax')
-rw-r--r--drivers/isdn/hisax/callc.c9
-rw-r--r--drivers/isdn/hisax/config.c2
2 files changed, 7 insertions, 4 deletions
diff --git a/drivers/isdn/hisax/callc.c b/drivers/isdn/hisax/callc.c
index 6924e3f9e..bcd305058 100644
--- a/drivers/isdn/hisax/callc.c
+++ b/drivers/isdn/hisax/callc.c
@@ -62,7 +62,7 @@
#include "hisax.h"
#ifdef MODULE
-#define MOD_USE_COUNT ((&__this_module)->usecount)
+#define MOD_USE_COUNT ( GET_USE_COUNT (&__this_module))
#endif /* MODULE */
const char *lli_revision = "$Revision: 2.13 $";
@@ -2055,7 +2055,7 @@ HiSax_command(isdn_ctrl * ic)
if (csta->channel[0].debug & 0x400) {
jiftime(tmp, jiffies);
i = strlen(tmp);
- sprintf(tmp + i, " LOCK modcnt %lx\n", MOD_USE_COUNT);
+ sprintf(tmp + i, " LOCK modcnt %d\n", MOD_USE_COUNT);
HiSax_putstatus(csta, tmp);
}
#endif /* MODULE */
@@ -2066,7 +2066,7 @@ HiSax_command(isdn_ctrl * ic)
if (csta->channel[0].debug & 0x400) {
jiftime(tmp, jiffies);
i = strlen(tmp);
- sprintf(tmp + i, " UNLOCK modcnt %lx\n", MOD_USE_COUNT);
+ sprintf(tmp + i, " UNLOCK modcnt %d\n", MOD_USE_COUNT);
HiSax_putstatus(csta, tmp);
}
#endif /* MODULE */
@@ -2128,7 +2128,8 @@ HiSax_command(isdn_ctrl * ic)
break;
#ifdef MODULE
case (55):
- MOD_USE_COUNT = 0;
+ while ( MOD_USE_COUNT > 0)
+ MOD_DEC_USE_COUNT;
HiSax_mod_inc_use_count();
break;
#endif /* MODULE */
diff --git a/drivers/isdn/hisax/config.c b/drivers/isdn/hisax/config.c
index 67e308e43..e6b3a9a52 100644
--- a/drivers/isdn/hisax/config.c
+++ b/drivers/isdn/hisax/config.c
@@ -97,9 +97,11 @@
#ifdef CONFIG_HISAX_ELSA
#define DEFAULT_CARD ISDN_CTYPE_ELSA
#define DEFAULT_CFG {0,0,0,0}
+#ifdef MODULE
int elsa_init_pcmcia(void*, int, int*, int);
EXPORT_SYMBOL(elsa_init_pcmcia);
#endif
+#endif
#ifdef CONFIG_HISAX_AVM_A1
#undef DEFAULT_CARD
#undef DEFAULT_CFG