diff options
Diffstat (limited to 'fs/sysfs/dir.c')
-rw-r--r-- | fs/sysfs/dir.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/sysfs/dir.c b/fs/sysfs/dir.c index 4a800017558d..aa007401bfc9 100644 --- a/fs/sysfs/dir.c +++ b/fs/sysfs/dir.c | |||
@@ -113,7 +113,7 @@ void sysfs_remove_dir(struct kobject *kobj) | |||
113 | spin_unlock(&sysfs_symlink_target_lock); | 113 | spin_unlock(&sysfs_symlink_target_lock); |
114 | 114 | ||
115 | if (kn) { | 115 | if (kn) { |
116 | WARN_ON_ONCE(sysfs_type(kn) != SYSFS_DIR); | 116 | WARN_ON_ONCE(kernfs_type(kn) != KERNFS_DIR); |
117 | kernfs_remove(kn); | 117 | kernfs_remove(kn); |
118 | } | 118 | } |
119 | } | 119 | } |