[TRIVIAL][PATCH] Removed deprecated functions/macros from lanai.c

From: Shine Mohamed
Date: Mon Sep 22 2003 - 06:40:11 EST



Patch to remove deprecated inline function MOD_INC_USE_COUNT and
MOD_INC_DEC_COUNT.

diff -urN linux-2.6.0-test5.orig/drivers/atm/lanai.c
linux-2.6.0-test5/drivers/atm/lanai.c
--- linux-2.6.0-test5.orig/drivers/atm/lanai.c 2003-09-09 01:19:58.000000000
+0530
+++ linux-2.6.0-test5/drivers/atm/lanai.c 2003-09-22 10:13:56.000000000
+0530
@@ -2242,7 +2242,6 @@
printk(KERN_ERR DEV_LABEL ": can't allocate interrupt\n");
goto error_vcctable;
}
- MOD_INC_USE_COUNT; /* At this point we can't fail */
mb(); /* Make sure that all that made it */
intr_enable(lanai, INT_ALL & ~(INT_PING | INT_WAKE));
/* 3.11: initialize loop mode (i.e. turn looping off) */
@@ -2312,7 +2311,6 @@
service_buffer_deallocate(lanai);
iounmap((void *) lanai->base);
kfree(lanai);
- MOD_DEC_USE_COUNT;
}

/* close a vcc */

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