Commit 4a383d75 authored by Simon Evans's avatar Simon Evans Committed by Jeff Garzik

[PATCH] 3c574_cs initialise spinlock

This patch against 2.5.75 initialises a spinlock when the structure containing
it is allocated
parent 5cd8cdcc
...@@ -296,7 +296,8 @@ static dev_link_t *tc574_attach(void) ...@@ -296,7 +296,8 @@ static dev_link_t *tc574_attach(void)
lp = dev->priv; lp = dev->priv;
link = &lp->link; link = &lp->link;
link->priv = dev; link->priv = dev;
spin_lock_init(&lp->window_lock);
init_timer(&link->release); init_timer(&link->release);
link->release.function = &tc574_release; link->release.function = &tc574_release;
link->release.data = (unsigned long)link; link->release.data = (unsigned long)link;
......
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