[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:
@@ -406,8 +406,6 @@ static void socket_shutdown(struct pcmcia_socket *s)
|
||||
cb_free(s);
|
||||
#endif
|
||||
s->functions = 0;
|
||||
kfree(s->config);
|
||||
s->config = NULL;
|
||||
|
||||
s->ops->get_status(s, &status);
|
||||
if (status & SS_POWERON) {
|
||||
|
Reference in New Issue
Block a user