Home Home > GIT Browse
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2005-01-20 16:17:44 -0800
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-01-20 16:17:44 -0800
commitf8ac5fa65c861c078a324d5d3e386400ea0973c1 (patch)
tree64375fdf8a8796ef0f2ea9d9ecadf169baa41976
parent4c7256e5ee0d7e38ba82463e6836faf436002bd1 (diff)
[PATCH] Lock initializer cleanup: media drivers
Use the new lock initializers DEFINE_SPIN_LOCK and DEFINE_RW_LOCK Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-rw-r--r--drivers/media/dvb/frontends/dib3000-common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/dvb/frontends/dib3000-common.c b/drivers/media/dvb/frontends/dib3000-common.c
index 3a1b8929f6fe..d42835932cc9 100644
--- a/drivers/media/dvb/frontends/dib3000-common.c
+++ b/drivers/media/dvb/frontends/dib3000-common.c
@@ -51,7 +51,7 @@ int dib3000_init_pid_list(struct dib3000_state *state, int num)
return -ENOMEM;
deb_info("initializing %d pids for the pid_list.\n",num);
- state->pid_list_lock = SPIN_LOCK_UNLOCKED;
+ spin_lock_init(&state->pid_list_lock);
memset(state->pid_list,0,num*(sizeof(struct dib3000_pid)));
for (i=0; i < num; i++) {
state->pid_list[i].pid = 0;