[PATCH] module refcounts for airport driver

From: Paul Mackerras (paulus@samba.org)
Date: Mon May 19 2003 - 00:02:48 EST


This patch takes out the MOD_INC/DEC_USE_COUNT in the airport (Apple
wireless ethernet) driver. The driver already does SET_MODULE_OWNER
on the netdevice, so the MOD_INC/DEC_USE_COUNT are unnecessary and
just cause warnings.

Please apply.

Thanks,
Paul.

diff -urN linux-2.5/drivers/net/wireless/airport.c pmac-2.5/drivers/net/wireless/airport.c
--- linux-2.5/drivers/net/wireless/airport.c 2003-02-21 09:48:09.000000000 +1100
+++ pmac-2.5/drivers/net/wireless/airport.c 2003-04-23 22:04:33.000000000 +1000
@@ -275,15 +275,11 @@
 
         printk(KERN_DEBUG "%s\n", version);
 
- MOD_INC_USE_COUNT;
-
         /* Lookup card in device tree */
         airport_node = find_devices("radio");
         if (airport_node && !strcmp(airport_node->parent->name, "mac-io"))
                 airport_dev = airport_attach(airport_node);
 
- MOD_DEC_USE_COUNT;
-
         return airport_dev ? 0 : -ENODEV;
 }
 
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Fri May 23 2003 - 22:00:32 EST