1 Index: linux-2.5-bkbits/sound/pcmcia/vx/vx_entry.c
2 ===================================================================
3 --- linux-2.5-bkbits/sound/pcmcia/vx/vx_entry.c (revision 12003)
4 +++ linux-2.5-bkbits/sound/pcmcia/vx/vx_entry.c (working copy)
6 static int vxpocket_event(event_t event, int priority, event_callback_args_t *args);
9 -static void vxpocket_release(u_long arg)
10 +static void vxpocket_release(dev_link_t* link)
12 - dev_link_t *link = (dev_link_t *)arg;
14 if (link->state & DEV_CONFIG) {
15 /* release cs resources */
16 CardServices(ReleaseConfiguration, link->handle);
18 struct snd_vxp_entry *hw;
19 dev_link_t *link = &vxp->link;
21 - vxpocket_release((u_long)link);
22 + vxpocket_release(link);
24 /* Break the link with Card Services */
27 link->irq.Handler = &snd_vx_irq_handler;
28 link->irq.Instance = chip;
30 - link->release.function = &vxpocket_release;
31 - link->release.data = (u_long)link;
33 link->conf.Attributes = CONF_ENABLE_IRQ;
35 link->conf.IntType = INT_MEMORY_AND_IO;
38 vx_core_t *chip = snd_magic_cast(vx_core_t, link->priv, return);
40 - del_timer(&link->release);
42 snd_printdd(KERN_DEBUG "vxpocket_detach called\n");
43 /* Remove the interface data from the linked list */
46 snd_printdd(KERN_DEBUG "CARD_REMOVAL..\n");
47 link->state &= ~DEV_PRESENT;
48 if (link->state & DEV_CONFIG) {
49 - mod_timer(&link->release, jiffies + HZ/20);
50 chip->chip_status |= VX_STAT_IS_STALE;