aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/firmware
diff options
context:
space:
mode:
authorEric W. Biederman <ebiederm@xmission.com>2015-05-13 18:35:41 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-07-21 13:10:01 -0400
commit28dd1f346b2f0fc2ab8285046ed0bd91e9b808d3 (patch)
tree7c2a4337b103067684f0345283d19c8e8e62afb2 /drivers/firmware
parent9924f6e89823a41bfd272ab759636276b9f9ee9c (diff)
sysfs: Create mountpoints with sysfs_create_mount_point
commit f9bb48825a6b5d02f4cabcc78967c75db903dcdc upstream. This allows for better documentation in the code and it allows for a simpler and fully correct version of fs_fully_visible to be written. The mount points converted and their filesystems are: /sys/hypervisor/s390/ s390_hypfs /sys/kernel/config/ configfs /sys/kernel/debug/ debugfs /sys/firmware/efi/efivars/ efivarfs /sys/fs/fuse/connections/ fusectl /sys/fs/pstore/ pstore /sys/kernel/tracing/ tracefs /sys/fs/cgroup/ cgroup /sys/kernel/security/ securityfs /sys/fs/selinux/ selinuxfs /sys/fs/smackfs/ smackfs Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/firmware')
-rw-r--r--drivers/firmware/efi/efi.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/firmware/efi/efi.c b/drivers/firmware/efi/efi.c
index 3061bb8629dc..e14363d12690 100644
--- a/drivers/firmware/efi/efi.c
+++ b/drivers/firmware/efi/efi.c
@@ -65,7 +65,6 @@ static int __init parse_efi_cmdline(char *str)
65early_param("efi", parse_efi_cmdline); 65early_param("efi", parse_efi_cmdline);
66 66
67static struct kobject *efi_kobj; 67static struct kobject *efi_kobj;
68static struct kobject *efivars_kobj;
69 68
70/* 69/*
71 * Let's not leave out systab information that snuck into 70 * Let's not leave out systab information that snuck into
@@ -212,10 +211,9 @@ static int __init efisubsys_init(void)
212 goto err_remove_group; 211 goto err_remove_group;
213 212
214 /* and the standard mountpoint for efivarfs */ 213 /* and the standard mountpoint for efivarfs */
215 efivars_kobj = kobject_create_and_add("efivars", efi_kobj); 214 error = sysfs_create_mount_point(efi_kobj, "efivars");
216 if (!efivars_kobj) { 215 if (error) {
217 pr_err("efivars: Subsystem registration failed.\n"); 216 pr_err("efivars: Subsystem registration failed.\n");
218 error = -ENOMEM;
219 goto err_remove_group; 217 goto err_remove_group;
220 } 218 }
221 219