Re: [PATCH] PnP Updates for 2.6.4-mm2

From: Adam Belay
Date: Mon Mar 15 2004 - 00:29:51 EST


[ISAPNP] Remove uneeded MOD_INC/DEC_USE_COUNT

From: Christoph Hellwig <hch@xxxxxx>

isapnp_cfg_begin and isapnp_cfg_end are exported symbols, so if any
module using them is loaded isapnp.o can't be unloaded anyway.


--- 1.43/drivers/pnp/isapnp/core.c Sun Sep 21 21:10:18 2003
+++ edited/drivers/pnp/isapnp/core.c Sun Oct 5 16:17:52 2003
@@ -934,7 +934,6 @@
{
if (csn < 1 || csn > 10 || logdev > 10)
return -EINVAL;
- MOD_INC_USE_COUNT;
down(&isapnp_cfg_mutex);
isapnp_wait();
isapnp_key();
@@ -962,7 +961,6 @@
{
isapnp_wait();
up(&isapnp_cfg_mutex);
- MOD_DEC_USE_COUNT;
return 0;
}

#undef SPRINTF



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