[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>
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user