aboutsummaryrefslogtreecommitdiffstats
path: root/fs/sysfs
diff options
context:
space:
mode:
Diffstat (limited to 'fs/sysfs')
-rw-r--r--fs/sysfs/file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/sysfs/file.c b/fs/sysfs/file.c
index 4045bdcc4b33..09a0611b3364 100644
--- a/fs/sysfs/file.c
+++ b/fs/sysfs/file.c
@@ -66,7 +66,7 @@ static struct sysfs_ops subsys_sysfs_ops = {
66 * sysfs_dirent->s_attr.open points to sysfs_open_dirent. s_attr.open 66 * sysfs_dirent->s_attr.open points to sysfs_open_dirent. s_attr.open
67 * is protected by sysfs_open_dirent_lock. 67 * is protected by sysfs_open_dirent_lock.
68 */ 68 */
69static spinlock_t sysfs_open_dirent_lock = SPIN_LOCK_UNLOCKED; 69static DEFINE_SPINLOCK(sysfs_open_dirent_lock);
70 70
71struct sysfs_open_dirent { 71struct sysfs_open_dirent {
72 atomic_t refcnt; 72 atomic_t refcnt;