diff options
Diffstat (limited to 'drivers/firmware/efi/efivars.c')
-rw-r--r-- | drivers/firmware/efi/efivars.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/firmware/efi/efivars.c b/drivers/firmware/efi/efivars.c index 70635b3b59d3..f8f5e5d9e020 100644 --- a/drivers/firmware/efi/efivars.c +++ b/drivers/firmware/efi/efivars.c | |||
@@ -67,6 +67,7 @@ | |||
67 | 67 | ||
68 | #include <linux/efi.h> | 68 | #include <linux/efi.h> |
69 | #include <linux/module.h> | 69 | #include <linux/module.h> |
70 | #include <linux/ucs2_string.h> | ||
70 | 71 | ||
71 | #define EFIVARS_VERSION "0.08" | 72 | #define EFIVARS_VERSION "0.08" |
72 | #define EFIVARS_DATE "2004-May-17" | 73 | #define EFIVARS_DATE "2004-May-17" |
@@ -407,7 +408,7 @@ efivar_create_sysfs_entry(struct efivar_entry *new_var) | |||
407 | efi_char16_t *variable_name; | 408 | efi_char16_t *variable_name; |
408 | 409 | ||
409 | variable_name = new_var->var.VariableName; | 410 | variable_name = new_var->var.VariableName; |
410 | variable_name_size = utf16_strlen(variable_name) * sizeof(efi_char16_t); | 411 | variable_name_size = ucs2_strlen(variable_name) * sizeof(efi_char16_t); |
411 | 412 | ||
412 | /* | 413 | /* |
413 | * Length of the variable bytes in ASCII, plus the '-' separator, | 414 | * Length of the variable bytes in ASCII, plus the '-' separator, |