[PATCH] use unsigned long for zoran_driver

From: Steven Rostedt
Date: Thu May 01 2008 - 20:04:35 EST



My typecheck flags patch flagged the zoran_driver.c as having an incompatible
flags for spin_lock_irqsave. This isn't really true since "long" was used.
But since the convention is to use "unsigned long" this is a clean up
patch to make the zoran_driver conform to the rest of the kernel.

Signed-off-by: Steven Rostedt <srostedt@xxxxxxxxxx>
---
drivers/media/video/zoran_driver.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)

Index: linux-compile.git/drivers/media/video/zoran_driver.c
===================================================================
--- linux-compile.git.orig/drivers/media/video/zoran_driver.c 2008-05-01 16:58:39.000000000 -0400
+++ linux-compile.git/drivers/media/video/zoran_driver.c 2008-05-01 19:58:19.000000000 -0400
@@ -1167,7 +1167,7 @@ zoran_close_end_session (struct file *fi

/* v4l capture */
if (fh->v4l_buffers.active != ZORAN_FREE) {
- long flags;
+ unsigned long flags;

spin_lock_irqsave(&zr->spinlock, flags);
zr36057_set_memgrab(zr, 0);
@@ -3436,7 +3436,7 @@ zoran_do_ioctl (struct inode *inode,

/* unload capture */
if (zr->v4l_memgrab_active) {
- long flags;
+ unsigned long flags;

spin_lock_irqsave(&zr->spinlock, flags);
zr36057_set_memgrab(zr, 0);
@@ -4375,7 +4375,7 @@ zoran_vm_close (struct vm_area_struct *v
mutex_lock(&zr->resource_lock);

if (fh->v4l_buffers.active != ZORAN_FREE) {
- long flags;
+ unsigned long flags;

spin_lock_irqsave(&zr->spinlock, flags);
zr36057_set_memgrab(zr, 0);

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/