|
@@ -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;
|