* [PATCH] module refcounts for airport driver
@ 2003-05-19 5:02 Paul Mackerras
0 siblings, 0 replies; only message in thread
From: Paul Mackerras @ 2003-05-19 5:02 UTC (permalink / raw)
To: torvalds; +Cc: linux-kernel, benh, jgarzik
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;
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2003-05-19 4:50 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-05-19 5:02 [PATCH] module refcounts for airport driver Paul Mackerras
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).