diff options
Diffstat (limited to 'drivers/pcmcia/pcmcia_ioctl.c')
-rw-r--r-- | drivers/pcmcia/pcmcia_ioctl.c | 4 |
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) { | |||
175 | static int pcmcia_adjust_resource_info(adjust_t *adj) | 175 | static 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; |