diff options
author | Dominik Brodowski <linux@dominikbrodowski.net> | 2006-01-10 22:50:39 +0300 |
---|---|---|
committer | Dominik Brodowski <linux@dominikbrodowski.net> | 2006-03-31 19:02:06 +0400 |
commit | 360b65b95bae96f854a2413093ee9b79c31203ae (patch) | |
tree | ff5f2dea6055c9616fdec44b7309fc81b8f116ed /drivers/pcmcia/cs_internal.h | |
parent | 855cdf134dfcf2ecb92ac4ad675cf655d8ceb678 (diff) | |
download | linux-360b65b95bae96f854a2413093ee9b79c31203ae.tar.xz |
[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 88c96aee0f45..01c32af559bf 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; |