V4L/DVB (10437): cx18: Remove an unused spinlock
authorAndy Walls <awalls@radix.net>
Mon, 2 Feb 2009 02:44:00 +0000 (23:44 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 30 Mar 2009 15:42:38 +0000 (12:42 -0300)
Signed-off-by: Andy Walls <awalls@radix.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/cx18/cx18-driver.c
drivers/media/video/cx18/cx18-driver.h

index 1518a58e17fccb3c0c8e4c9577c58d59a4dc9387..062f1910e8ddc6fad908c08cec229c7b123ad763 100644 (file)
@@ -563,8 +563,6 @@ static int __devinit cx18_init_struct1(struct cx18 *cx)
        mutex_init(&cx->epu2apu_mb_lock);
        mutex_init(&cx->epu2cpu_mb_lock);
 
-       spin_lock_init(&cx->lock);
-
        cx->work_queue = create_singlethread_workqueue(cx->name);
        if (cx->work_queue == NULL) {
                CX18_ERR("Unable to create work hander thread\n");
index 3a21013cd82b60ef43d534da80c9b4e3368ea11d..d95c6ace2b96935306dee2774123fc2a6eb8881a 100644 (file)
@@ -429,7 +429,6 @@ struct cx18 {
        unsigned long i_flags;  /* global cx18 flags */
        atomic_t ana_capturing; /* count number of active analog capture streams */
        atomic_t tot_capturing; /* total count number of active capture streams */
-       spinlock_t lock;        /* lock access to this struct */
        int search_pack_header;
 
        int open_id;            /* incremented each time an open occurs, used as