]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - lib/kobject.c
sun4M: add include of slab.h for kzalloc
[karo-tx-linux.git] / lib / kobject.c
index b0b26665c61161d4f33d1dbdaf49fe74275f400e..58751bb80a7cbbe905c7d4e752df641ae2240b51 100644 (file)
@@ -94,7 +94,7 @@ static int create_dir(struct kobject *kobj)
                BUG_ON(ops->type >= KOBJ_NS_TYPES);
                BUG_ON(!kobj_ns_type_registered(ops->type));
 
-               kernfs_enable_ns(kobj->sd);
+               sysfs_enable_ns(kobj->sd);
        }
 
        return 0;
@@ -779,6 +779,7 @@ const struct sysfs_ops kobj_sysfs_ops = {
        .show   = kobj_attr_show,
        .store  = kobj_attr_store,
 };
+EXPORT_SYMBOL_GPL(kobj_sysfs_ops);
 
 /**
  * kset_register - initialize and add a kset.