Skip to contentSkip to conversation

Removed deprecated functions/macros from lanai.c

PATCH New Shine Mohamed 1 participant 1 message Sep 22, 2003

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Removed deprecated functions/macros from lanai.c

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 */