aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pcmcia/pcmcia_ioctl.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/pcmcia_ioctl.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/pcmcia_ioctl.c')
-rw-r--r--drivers/pcmcia/pcmcia_ioctl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/pcmcia/pcmcia_ioctl.c b/drivers/pcmcia/pcmcia_ioctl.c
index ef64ceb5e751..40bef470b47c 100644
--- a/drivers/pcmcia/pcmcia_ioctl.c
+++ b/drivers/pcmcia/pcmcia_ioctl.c
@@ -175,7 +175,7 @@ static inline int adjust_irq(struct pcmcia_socket *s, adjust_t *adj) {
175static int pcmcia_adjust_resource_info(adjust_t *adj) 175static int pcmcia_adjust_resource_info(adjust_t *adj)
176{ 176{
177 struct pcmcia_socket *s; 177 struct pcmcia_socket *s;
178 int ret = CS_UNSUPPORTED_FUNCTION; 178 int ret = -ENOSYS;
179 unsigned long flags; 179 unsigned long flags;
180 180
181 down_read(&pcmcia_socket_list_rwsem); 181 down_read(&pcmcia_socket_list_rwsem);
@@ -975,7 +975,7 @@ static int ds_ioctl(struct inode * inode, struct file * file,
975 err = -ENOSPC; break; 975 err = -ENOSPC; break;
976 case CS_NO_MORE_ITEMS: 976 case CS_NO_MORE_ITEMS:
977 err = -ENODATA; break; 977 err = -ENODATA; break;
978 case CS_UNSUPPORTED_FUNCTION: 978 case -ENOSYS:
979 err = -ENOSYS; break; 979 err = -ENOSYS; break;
980 default: 980 default:
981 err = -EIO; break; 981 err = -EIO; break;