diff options
Diffstat (limited to 'drivers/pcmcia/ds.c')
-rw-r--r-- | drivers/pcmcia/ds.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/pcmcia/ds.c b/drivers/pcmcia/ds.c index 54068f451ee6..85e2cb2b9e91 100644 --- a/drivers/pcmcia/ds.c +++ b/drivers/pcmcia/ds.c | |||
@@ -622,14 +622,14 @@ static void pcmcia_delayed_add_pseudo_device(void *data) | |||
622 | { | 622 | { |
623 | struct pcmcia_bus_socket *s = data; | 623 | struct pcmcia_bus_socket *s = data; |
624 | pcmcia_device_add(s, 0); | 624 | pcmcia_device_add(s, 0); |
625 | s->device_add_pending = 0; | 625 | s->pcmcia_state.device_add_pending = 0; |
626 | } | 626 | } |
627 | 627 | ||
628 | static inline void pcmcia_add_pseudo_device(struct pcmcia_bus_socket *s) | 628 | static inline void pcmcia_add_pseudo_device(struct pcmcia_bus_socket *s) |
629 | { | 629 | { |
630 | if (!s->device_add_pending) { | 630 | if (!s->pcmcia_state.device_add_pending) { |
631 | schedule_work(&s->device_add); | 631 | schedule_work(&s->device_add); |
632 | s->device_add_pending = 1; | 632 | s->pcmcia_state.device_add_pending = 1; |
633 | } | 633 | } |
634 | return; | 634 | return; |
635 | } | 635 | } |
@@ -981,14 +981,14 @@ static int ds_event(struct pcmcia_socket *skt, event_t event, int priority) | |||
981 | switch (event) { | 981 | switch (event) { |
982 | 982 | ||
983 | case CS_EVENT_CARD_REMOVAL: | 983 | case CS_EVENT_CARD_REMOVAL: |
984 | s->state &= ~DS_SOCKET_PRESENT; | 984 | s->pcmcia_state.present = 0; |
985 | send_event(skt, event, priority); | 985 | send_event(skt, event, priority); |
986 | unbind_request(s); | 986 | unbind_request(s); |
987 | handle_event(s, event); | 987 | handle_event(s, event); |
988 | break; | 988 | break; |
989 | 989 | ||
990 | case CS_EVENT_CARD_INSERTION: | 990 | case CS_EVENT_CARD_INSERTION: |
991 | s->state |= DS_SOCKET_PRESENT; | 991 | s->pcmcia_state.present = 1; |
992 | pcmcia_card_add(skt); | 992 | pcmcia_card_add(skt); |
993 | handle_event(s, event); | 993 | handle_event(s, event); |
994 | break; | 994 | break; |
@@ -1229,7 +1229,7 @@ static void pcmcia_bus_remove_socket(struct class_device *class_dev) | |||
1229 | 1229 | ||
1230 | pccard_register_pcmcia(socket, NULL); | 1230 | pccard_register_pcmcia(socket, NULL); |
1231 | 1231 | ||
1232 | socket->pcmcia->state |= DS_SOCKET_DEAD; | 1232 | socket->pcmcia->pcmcia_state.dead = 1; |
1233 | pcmcia_put_bus_socket(socket->pcmcia); | 1233 | pcmcia_put_bus_socket(socket->pcmcia); |
1234 | socket->pcmcia = NULL; | 1234 | socket->pcmcia = NULL; |
1235 | 1235 | ||