Commit f2e54b90 authored by Alan Cox's avatar Alan Cox Committed by Linus Torvalds

[PATCH] fix missing PCMCIA timer inits

parent 4315057f
...@@ -300,7 +300,8 @@ static dev_link_t *pcnet_attach(void) ...@@ -300,7 +300,8 @@ static dev_link_t *pcnet_attach(void)
memset(info, 0, sizeof(*info)); memset(info, 0, sizeof(*info));
link = &info->link; dev = &info->dev; link = &info->link; dev = &info->dev;
link->priv = info; link->priv = info;
init_timer(&link->release);
link->release.function = &pcnet_release; link->release.function = &pcnet_release;
link->release.data = (u_long)link; link->release.data = (u_long)link;
link->irq.Attributes = IRQ_TYPE_EXCLUSIVE; link->irq.Attributes = IRQ_TYPE_EXCLUSIVE;
......
...@@ -357,6 +357,7 @@ static dev_link_t *smc91c92_attach(void) ...@@ -357,6 +357,7 @@ static dev_link_t *smc91c92_attach(void)
memset(smc, 0, sizeof(struct smc_private)); memset(smc, 0, sizeof(struct smc_private));
link = &smc->link; dev = &smc->dev; link = &smc->link; dev = &smc->dev;
spin_lock_init(&smc->lock); spin_lock_init(&smc->lock);
init_timer(&link->release);
link->release.function = &smc91c92_release; link->release.function = &smc91c92_release;
link->release.data = (u_long)link; link->release.data = (u_long)link;
link->io.NumPorts1 = 16; link->io.NumPorts1 = 16;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment