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.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/pcmcia/cs.c b/drivers/pcmcia/cs.c
index 037cb0c7e094..e847c3231da8 100644
--- a/drivers/pcmcia/cs.c
+++ b/drivers/pcmcia/cs.c
@@ -769,7 +769,7 @@ int pccard_reset_card(struct pcmcia_socket *skt)
769 break; 769 break;
770 } 770 }
771 if (skt->state & SOCKET_CARDBUS) { 771 if (skt->state & SOCKET_CARDBUS) {
772 ret = CS_UNSUPPORTED_FUNCTION; 772 ret = -EPERM;
773 break; 773 break;
774 } 774 }
775 775
@@ -810,7 +810,7 @@ int pcmcia_suspend_card(struct pcmcia_socket *skt)
810 break; 810 break;
811 } 811 }
812 if (skt->state & SOCKET_CARDBUS) { 812 if (skt->state & SOCKET_CARDBUS) {
813 ret = CS_UNSUPPORTED_FUNCTION; 813 ret = -EPERM;
814 break; 814 break;
815 } 815 }
816 if (skt->callback) { 816 if (skt->callback) {
@@ -840,7 +840,7 @@ int pcmcia_resume_card(struct pcmcia_socket *skt)
840 break; 840 break;
841 } 841 }
842 if (skt->state & SOCKET_CARDBUS) { 842 if (skt->state & SOCKET_CARDBUS) {
843 ret = CS_UNSUPPORTED_FUNCTION; 843 ret = -EPERM;
844 break; 844 break;
845 } 845 }
846 ret = socket_resume(skt); 846 ret = socket_resume(skt);