]> git.neil.brown.name Git - history.git/commit
[PATCH] pcmcia: remove internal module use count, use module_refcount instead
authorDominik Brodowski <linux@dominikbrodowski.de>
Tue, 11 Jan 2005 11:20:33 +0000 (03:20 -0800)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Tue, 11 Jan 2005 11:20:33 +0000 (03:20 -0800)
commitef3571cc1e8902902430ccf85b45510a97fc5ba8
treefc47c94fb6c7b4d8fcfde007b310a0562089c7c3
parentdaca1b3686b00cfad0281d016d5517610345c85f
[PATCH] pcmcia: remove internal module use count, use module_refcount instead

Remove the internal driver use_count in ds.c, as the reference counting is
done in the module core anyways, and that reference count is available for
cardmgr's usage by a call to module_refcount.  And if !CONFIG_MODULE_UNLOAD,
rmmod is useless anyways, so avoid that call by cardmgr at all.

Signed-off-by: Dominik Brodowski <linux@brodo.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/pcmcia/ds.c
include/pcmcia/ds.h