diff options
Diffstat (limited to 'drivers/platform/x86/intel_menlow.c')
-rw-r--r-- | drivers/platform/x86/intel_menlow.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/platform/x86/intel_menlow.c b/drivers/platform/x86/intel_menlow.c index 29432a50be45..2f795ce2b939 100644 --- a/drivers/platform/x86/intel_menlow.c +++ b/drivers/platform/x86/intel_menlow.c | |||
@@ -30,6 +30,7 @@ | |||
30 | #include <linux/kernel.h> | 30 | #include <linux/kernel.h> |
31 | #include <linux/module.h> | 31 | #include <linux/module.h> |
32 | #include <linux/init.h> | 32 | #include <linux/init.h> |
33 | #include <linux/slab.h> | ||
33 | #include <linux/types.h> | 34 | #include <linux/types.h> |
34 | #include <linux/pci.h> | 35 | #include <linux/pci.h> |
35 | #include <linux/pm.h> | 36 | #include <linux/pm.h> |
@@ -396,6 +397,7 @@ static int intel_menlow_add_one_attribute(char *name, int mode, void *show, | |||
396 | if (!attr) | 397 | if (!attr) |
397 | return -ENOMEM; | 398 | return -ENOMEM; |
398 | 399 | ||
400 | sysfs_attr_init(&attr->attr.attr); /* That is consistent naming :D */ | ||
399 | attr->attr.attr.name = name; | 401 | attr->attr.attr.name = name; |
400 | attr->attr.attr.mode = mode; | 402 | attr->attr.attr.mode = mode; |
401 | attr->attr.show = show; | 403 | attr->attr.show = show; |
@@ -510,7 +512,7 @@ static int __init intel_menlow_module_init(void) | |||
510 | /* Looking for sensors in each ACPI thermal zone */ | 512 | /* Looking for sensors in each ACPI thermal zone */ |
511 | status = acpi_walk_namespace(ACPI_TYPE_THERMAL, ACPI_ROOT_OBJECT, | 513 | status = acpi_walk_namespace(ACPI_TYPE_THERMAL, ACPI_ROOT_OBJECT, |
512 | ACPI_UINT32_MAX, | 514 | ACPI_UINT32_MAX, |
513 | intel_menlow_register_sensor, NULL, NULL); | 515 | intel_menlow_register_sensor, NULL, NULL, NULL); |
514 | if (ACPI_FAILURE(status)) | 516 | if (ACPI_FAILURE(status)) |
515 | return -ENODEV; | 517 | return -ENODEV; |
516 | 518 | ||