aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pcmcia/vx/vxpocket.c
diff options
context:
space:
mode:
Diffstat (limited to 'sound/pcmcia/vx/vxpocket.c')
-rw-r--r--sound/pcmcia/vx/vxpocket.c15
1 files changed, 6 insertions, 9 deletions
diff --git a/sound/pcmcia/vx/vxpocket.c b/sound/pcmcia/vx/vxpocket.c
index a6edfc3be29..80000d631f8 100644
--- a/sound/pcmcia/vx/vxpocket.c
+++ b/sound/pcmcia/vx/vxpocket.c
@@ -2,7 +2,7 @@
2 * Driver for Digigram VXpocket V2/440 soundcards 2 * Driver for Digigram VXpocket V2/440 soundcards
3 * 3 *
4 * Copyright (c) 2002 by Takashi Iwai <tiwai@suse.de> 4 * Copyright (c) 2002 by Takashi Iwai <tiwai@suse.de>
5 * 5
6 * This program is free software; you can redistribute it and/or modify 6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by 7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or 8 * the Free Software Foundation; either version 2 of the License, or
@@ -162,10 +162,9 @@ static int snd_vxpocket_new(struct snd_card *card, int ibl,
162 link->resource[0]->flags |= IO_DATA_PATH_WIDTH_AUTO; 162 link->resource[0]->flags |= IO_DATA_PATH_WIDTH_AUTO;
163 link->resource[0]->end = 16; 163 link->resource[0]->end = 16;
164 164
165 link->conf.Attributes = CONF_ENABLE_IRQ; 165 link->config_flags |= CONF_ENABLE_IRQ;
166 link->conf.IntType = INT_MEMORY_AND_IO; 166 link->config_index = 1;
167 link->conf.ConfigIndex = 1; 167 link->config_regs = PRESENT_OPTION;
168 link->conf.Present = PRESENT_OPTION;
169 168
170 *chip_ret = vxp; 169 *chip_ret = vxp;
171 return 0; 170 return 0;
@@ -234,7 +233,7 @@ static int vxpocket_config(struct pcmcia_device *link)
234 if (ret) 233 if (ret)
235 goto failed; 234 goto failed;
236 235
237 ret = pcmcia_request_configuration(link, &link->conf); 236 ret = pcmcia_enable_device(link);
238 if (ret) 237 if (ret)
239 goto failed; 238 goto failed;
240 239
@@ -359,9 +358,7 @@ MODULE_DEVICE_TABLE(pcmcia, vxp_ids);
359 358
360static struct pcmcia_driver vxp_cs_driver = { 359static struct pcmcia_driver vxp_cs_driver = {
361 .owner = THIS_MODULE, 360 .owner = THIS_MODULE,
362 .drv = { 361 .name = "snd-vxpocket",
363 .name = "snd-vxpocket",
364 },
365 .probe = vxpocket_probe, 362 .probe = vxpocket_probe,
366 .remove = vxpocket_detach, 363 .remove = vxpocket_detach,
367 .id_table = vxp_ids, 364 .id_table = vxp_ids,