aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/firmware/efi/efi.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/firmware/efi/efi.c')
-rw-r--r--drivers/firmware/efi/efi.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/firmware/efi/efi.c b/drivers/firmware/efi/efi.c
index f70febf680c3..557a47829d03 100644
--- a/drivers/firmware/efi/efi.c
+++ b/drivers/firmware/efi/efi.c
@@ -109,6 +109,8 @@ struct kobject *efi_kobj;
109/* 109/*
110 * Let's not leave out systab information that snuck into 110 * Let's not leave out systab information that snuck into
111 * the efivars driver 111 * the efivars driver
112 * Note, do not add more fields in systab sysfs file as it breaks sysfs
113 * one value per file rule!
112 */ 114 */
113static ssize_t systab_show(struct kobject *kobj, 115static ssize_t systab_show(struct kobject *kobj,
114 struct kobj_attribute *attr, char *buf) 116 struct kobj_attribute *attr, char *buf)
@@ -143,8 +145,7 @@ static ssize_t systab_show(struct kobject *kobj,
143 return str - buf; 145 return str - buf;
144} 146}
145 147
146static struct kobj_attribute efi_attr_systab = 148static struct kobj_attribute efi_attr_systab = __ATTR_RO_MODE(systab, 0400);
147 __ATTR(systab, 0400, systab_show, NULL);
148 149
149#define EFI_FIELD(var) efi.var 150#define EFI_FIELD(var) efi.var
150 151