Commit d7b37889 authored by Jiri Slaby's avatar Jiri Slaby Committed by Greg Kroah-Hartman
Browse files

sysfs: remove SPIN_LOCK_UNLOCKED



SPIN_LOCK_UNLOCKED is deprecated, use DEFINE_SPINLOCK instead
Signed-off-by: default avatarJiri Slaby <jirislaby@gmail.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Cc: Tejun Heo <teheo@suse.de>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 2f90a851
...@@ -66,7 +66,7 @@ static struct sysfs_ops subsys_sysfs_ops = { ...@@ -66,7 +66,7 @@ static struct sysfs_ops subsys_sysfs_ops = {
* sysfs_dirent->s_attr.open points to sysfs_open_dirent. s_attr.open * sysfs_dirent->s_attr.open points to sysfs_open_dirent. s_attr.open
* is protected by sysfs_open_dirent_lock. * is protected by sysfs_open_dirent_lock.
*/ */
static spinlock_t sysfs_open_dirent_lock = SPIN_LOCK_UNLOCKED; static DEFINE_SPINLOCK(sysfs_open_dirent_lock);
struct sysfs_open_dirent { struct sysfs_open_dirent {
atomic_t refcnt; atomic_t refcnt;
......
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