diff options
author | Dominik Brodowski <linux@dominikbrodowski.net> | 2006-01-10 20:50:39 +0100 |
---|---|---|
committer | Dominik Brodowski <linux@dominikbrodowski.net> | 2006-03-31 17:02:06 +0200 |
commit | 360b65b95bae96f854a2413093ee9b79c31203ae (patch) | |
tree | ff5f2dea6055c9616fdec44b7309fc81b8f116ed /drivers/pcmcia/cs_internal.h | |
parent | 855cdf134dfcf2ecb92ac4ad675cf655d8ceb678 (diff) | |
download | op-kernel-dev-360b65b95bae96f854a2413093ee9b79c31203ae.zip op-kernel-dev-360b65b95bae96f854a2413093ee9b79c31203ae.tar.gz |
[PATCH] pcmcia: make config_t independent, add reference counting
Handle config_t structs independent of struct pcmcia_socket, and add
reference counting for them.
Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
Diffstat (limited to 'drivers/pcmcia/cs_internal.h')
-rw-r--r-- | drivers/pcmcia/cs_internal.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/pcmcia/cs_internal.h b/drivers/pcmcia/cs_internal.h index 88c96ae..01c32af 100644 --- a/drivers/pcmcia/cs_internal.h +++ b/drivers/pcmcia/cs_internal.h @@ -16,6 +16,7 @@ #define _LINUX_CS_INTERNAL_H #include <linux/config.h> +#include <linux/kref.h> /* Flags in client state */ #define CLIENT_CONFIG_LOCKED 0x0001 @@ -40,6 +41,7 @@ typedef struct region_t { /* Each card function gets one of these guys */ typedef struct config_t { + struct kref ref; u_int state; u_int Attributes; u_int IntType; |