Commit cd8286cf authored by Paul Mackerras's avatar Paul Mackerras Committed by Jeff Garzik

[PATCH] module refcounts for airport driver

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.
parent 0e30af1e
...@@ -275,15 +275,11 @@ init_airport(void) ...@@ -275,15 +275,11 @@ init_airport(void)
printk(KERN_DEBUG "%s\n", version); printk(KERN_DEBUG "%s\n", version);
MOD_INC_USE_COUNT;
/* Lookup card in device tree */ /* Lookup card in device tree */
airport_node = find_devices("radio"); airport_node = find_devices("radio");
if (airport_node && !strcmp(airport_node->parent->name, "mac-io")) if (airport_node && !strcmp(airport_node->parent->name, "mac-io"))
airport_dev = airport_attach(airport_node); airport_dev = airport_attach(airport_node);
MOD_DEC_USE_COUNT;
return airport_dev ? 0 : -ENODEV; return airport_dev ? 0 : -ENODEV;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment