diff options
Diffstat (limited to 'drivers/pcmcia/vrc4171_card.c')
-rw-r--r-- | drivers/pcmcia/vrc4171_card.c | 18 |
1 files changed, 3 insertions, 15 deletions
diff --git a/drivers/pcmcia/vrc4171_card.c b/drivers/pcmcia/vrc4171_card.c index c9fcbdc164ea..86e4a1a3c642 100644 --- a/drivers/pcmcia/vrc4171_card.c +++ b/drivers/pcmcia/vrc4171_card.c | |||
@@ -105,6 +105,7 @@ typedef struct vrc4171_socket { | |||
105 | char name[24]; | 105 | char name[24]; |
106 | int csc_irq; | 106 | int csc_irq; |
107 | int io_irq; | 107 | int io_irq; |
108 | spinlock_t lock; | ||
108 | } vrc4171_socket_t; | 109 | } vrc4171_socket_t; |
109 | 110 | ||
110 | static vrc4171_socket_t vrc4171_sockets[CARD_MAX_SLOTS]; | 111 | static vrc4171_socket_t vrc4171_sockets[CARD_MAX_SLOTS]; |
@@ -327,7 +328,7 @@ static int pccard_set_socket(struct pcmcia_socket *sock, socket_state_t *state) | |||
327 | slot = sock->sock; | 328 | slot = sock->sock; |
328 | socket = &vrc4171_sockets[slot]; | 329 | socket = &vrc4171_sockets[slot]; |
329 | 330 | ||
330 | spin_lock_irq(&sock->lock); | 331 | spin_lock_irq(&socket->lock); |
331 | 332 | ||
332 | voltage = set_Vcc_value(state->Vcc); | 333 | voltage = set_Vcc_value(state->Vcc); |
333 | exca_write_byte(slot, CARD_VOLTAGE_SELECT, voltage); | 334 | exca_write_byte(slot, CARD_VOLTAGE_SELECT, voltage); |
@@ -370,7 +371,7 @@ static int pccard_set_socket(struct pcmcia_socket *sock, socket_state_t *state) | |||
370 | cscint |= I365_CSC_DETECT; | 371 | cscint |= I365_CSC_DETECT; |
371 | exca_write_byte(slot, I365_CSCINT, cscint); | 372 | exca_write_byte(slot, I365_CSCINT, cscint); |
372 | 373 | ||
373 | spin_unlock_irq(&sock->lock); | 374 | spin_unlock_irq(&socket->lock); |
374 | 375 | ||
375 | return 0; | 376 | return 0; |
376 | } | 377 | } |
@@ -704,24 +705,11 @@ static int __devinit vrc4171_card_setup(char *options) | |||
704 | 705 | ||
705 | __setup("vrc4171_card=", vrc4171_card_setup); | 706 | __setup("vrc4171_card=", vrc4171_card_setup); |
706 | 707 | ||
707 | static int vrc4171_card_suspend(struct platform_device *dev, | ||
708 | pm_message_t state) | ||
709 | { | ||
710 | return pcmcia_socket_dev_suspend(&dev->dev); | ||
711 | } | ||
712 | |||
713 | static int vrc4171_card_resume(struct platform_device *dev) | ||
714 | { | ||
715 | return pcmcia_socket_dev_resume(&dev->dev); | ||
716 | } | ||
717 | |||
718 | static struct platform_driver vrc4171_card_driver = { | 708 | static struct platform_driver vrc4171_card_driver = { |
719 | .driver = { | 709 | .driver = { |
720 | .name = vrc4171_card_name, | 710 | .name = vrc4171_card_name, |
721 | .owner = THIS_MODULE, | 711 | .owner = THIS_MODULE, |
722 | }, | 712 | }, |
723 | .suspend = vrc4171_card_suspend, | ||
724 | .resume = vrc4171_card_resume, | ||
725 | }; | 713 | }; |
726 | 714 | ||
727 | static int __devinit vrc4171_card_init(void) | 715 | static int __devinit vrc4171_card_init(void) |