diff options
author | Jeff Garzik <jgarzik@pobox.com> | 2005-09-01 18:02:01 -0400 |
---|---|---|
committer | Jeff Garzik <jgarzik@pobox.com> | 2005-09-01 18:02:01 -0400 |
commit | e3ee3b78f83688a0ae4315e8be71b2eac559904a (patch) | |
tree | deb03bcdd020262af450ed23382d7c921263f5cf /sound/pcmcia/vx/vxpocket.c | |
parent | 91cb70c1769d9b72dd1efe40c31f01005820b09e (diff) | |
parent | 6b39374a27eb4be7e9d82145ae270ba02ea90dc8 (diff) |
/spare/repo/netdev-2.6 branch 'master'
Diffstat (limited to 'sound/pcmcia/vx/vxpocket.c')
-rw-r--r-- | sound/pcmcia/vx/vxpocket.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/sound/pcmcia/vx/vxpocket.c b/sound/pcmcia/vx/vxpocket.c index 3a82161d3b24..1e8f16b4c073 100644 --- a/sound/pcmcia/vx/vxpocket.c +++ b/sound/pcmcia/vx/vxpocket.c | |||
@@ -297,6 +297,7 @@ static void vxpocket_config(dev_link_t *link) | |||
297 | CS_CHECK(RequestConfiguration, pcmcia_request_configuration(link->handle, &link->conf)); | 297 | CS_CHECK(RequestConfiguration, pcmcia_request_configuration(link->handle, &link->conf)); |
298 | 298 | ||
299 | chip->dev = &handle_to_dev(link->handle); | 299 | chip->dev = &handle_to_dev(link->handle); |
300 | snd_card_set_dev(chip->card, chip->dev); | ||
300 | 301 | ||
301 | if (snd_vxpocket_assign_resources(chip, link->io.BasePort1, link->irq.AssignedIRQ) < 0) | 302 | if (snd_vxpocket_assign_resources(chip, link->io.BasePort1, link->irq.AssignedIRQ) < 0) |
302 | goto failed; | 303 | goto failed; |
@@ -376,7 +377,7 @@ static int vxpocket_event(event_t event, int priority, event_callback_args_t *ar | |||
376 | 377 | ||
377 | /* | 378 | /* |
378 | */ | 379 | */ |
379 | static dev_link_t *vxp_attach(void) | 380 | static dev_link_t *vxpocket_attach(void) |
380 | { | 381 | { |
381 | snd_card_t *card; | 382 | snd_card_t *card; |
382 | struct snd_vxpocket *vxp; | 383 | struct snd_vxpocket *vxp; |
@@ -407,7 +408,7 @@ static dev_link_t *vxp_attach(void) | |||
407 | return NULL; | 408 | return NULL; |
408 | } | 409 | } |
409 | 410 | ||
410 | vxp->index = index[i]; | 411 | vxp->index = i; |
411 | card_alloc |= 1 << i; | 412 | card_alloc |= 1 << i; |
412 | 413 | ||
413 | /* Chain drivers */ | 414 | /* Chain drivers */ |
@@ -417,7 +418,7 @@ static dev_link_t *vxp_attach(void) | |||
417 | return &vxp->link; | 418 | return &vxp->link; |
418 | } | 419 | } |
419 | 420 | ||
420 | static void vxp_detach(dev_link_t *link) | 421 | static void vxpocket_detach(dev_link_t *link) |
421 | { | 422 | { |
422 | struct snd_vxpocket *vxp; | 423 | struct snd_vxpocket *vxp; |
423 | vx_core_t *chip; | 424 | vx_core_t *chip; |
@@ -458,8 +459,9 @@ static struct pcmcia_driver vxp_cs_driver = { | |||
458 | .drv = { | 459 | .drv = { |
459 | .name = "snd-vxpocket", | 460 | .name = "snd-vxpocket", |
460 | }, | 461 | }, |
461 | .attach = vxp_attach, | 462 | .attach = vxpocket_attach, |
462 | .detach = vxp_detach, | 463 | .detach = vxpocket_detach, |
464 | .event = vxpocket_event, | ||
463 | .id_table = vxp_ids, | 465 | .id_table = vxp_ids, |
464 | }; | 466 | }; |
465 | 467 | ||