2.1.131-ac12 / Patch for Hisax driver

Heinz Mauelshagen (mauelsha@ez-darmstadt.telekom.de)
Fri, 18 Dec 1998 1:49:19 MET


Patch for linux-2.1.131-ac12/drivers/isdn/hisax/callc.c follows
to fix compile problem because of use of mod->usecount instead of macros.

Regards,
Heinz

--- linux-2.1.131.orig/drivers/isdn/hisax/callc.c Thu Apr 2 02:20:58 1998
+++ linux-2.1.131-ac12/drivers/isdn/hisax/callc.c Fri Dec 18 01:38:20 1998
@@ -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 @@
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 @@
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 @@
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 */

--

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

Systemmanagement Entwicklungsbereich 2 Deutsche Telekom AG Entwicklungszentrum Darmstadt Heinz Mauelshagen Otto-Roehm-Strasse 71c Postfach 10 05 41 mge@ez-darmstadt.telekom.de 64205 Darmstadt Germany +49 6151 886-425 FAX-386 =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/