aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pcmcia/cs.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/pcmcia/cs.c')
-rw-r--r--drivers/pcmcia/cs.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/pcmcia/cs.c b/drivers/pcmcia/cs.c
index b0ec9c614ce7..b229f6d9e443 100644
--- a/drivers/pcmcia/cs.c
+++ b/drivers/pcmcia/cs.c
@@ -752,14 +752,17 @@ int pcmcia_reset_card(struct pcmcia_socket *skt)
752 mutex_lock(&skt->skt_mutex); 752 mutex_lock(&skt->skt_mutex);
753 do { 753 do {
754 if (!(skt->state & SOCKET_PRESENT)) { 754 if (!(skt->state & SOCKET_PRESENT)) {
755 dev_dbg(&skt->dev, "can't reset, not present\n");
755 ret = -ENODEV; 756 ret = -ENODEV;
756 break; 757 break;
757 } 758 }
758 if (skt->state & SOCKET_SUSPEND) { 759 if (skt->state & SOCKET_SUSPEND) {
760 dev_dbg(&skt->dev, "can't reset, suspended\n");
759 ret = -EBUSY; 761 ret = -EBUSY;
760 break; 762 break;
761 } 763 }
762 if (skt->state & SOCKET_CARDBUS) { 764 if (skt->state & SOCKET_CARDBUS) {
765 dev_dbg(&skt->dev, "can't reset, is cardbus\n");
763 ret = -EPERM; 766 ret = -EPERM;
764 break; 767 break;
765 } 768 }