aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pcmcia/cs.c
diff options
context:
space:
mode:
authorDominik Brodowski <linux@dominikbrodowski.net>2008-08-03 04:47:59 -0400
committerDominik Brodowski <linux@dominikbrodowski.net>2008-08-22 20:29:41 -0400
commitde6405e9d1e7530ea33b62e1a3921338f836a046 (patch)
tree4952537154518b48875bd126b3ac165ed4eb9198 /drivers/pcmcia/cs.c
parent1168386aa7d850ead2ae135d5a7949a592c6e9a0 (diff)
pcmcia: deprecate CS_UNSUPPORTED_*
CS_UNSUPPORTED_MODE and CS_UNSUPPORTED_FUNCTION were mostly used to denote trying to use PCMCIA functions on CardBus cards. Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
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);