git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Redefine ATOMIC_INIT and ATOMIC64_INIT to drop the casts
[pandora-kernel.git]
/
drivers
/
char
/
mspec.c
diff --git
a/drivers/char/mspec.c
b/drivers/char/mspec.c
index
5c0d96a
..
b12ffea
100644
(file)
--- a/
drivers/char/mspec.c
+++ b/
drivers/char/mspec.c
@@
-284,7
+284,7
@@
mspec_mmap(struct file *file, struct vm_area_struct *vma,
vdata->flags = flags;
vdata->type = type;
spin_lock_init(&vdata->lock);
-
vdata->refcnt = ATOMIC_INIT(
1);
+
atomic_set(&vdata->refcnt,
1);
vma->vm_private_data = vdata;
vma->vm_flags |= (VM_IO | VM_RESERVED | VM_PFNMAP | VM_DONTEXPAND);