summaryrefslogtreecommitdiff
path: root/drivers/acpi
diff options
context:
space:
mode:
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>2020-11-19 14:03:52 +0100
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2020-11-19 14:03:52 +0100
commitde15e20f50b126b3a5a753dd259df775e6a0ea5c (patch)
tree731680d5386b8dba213792dba8260d6f8bc162cd /drivers/acpi
parent4fba15fbb8106e8db17f486d653484e64969eb87 (diff)
parent7dc7a8b04f3da8aa3c3be514e155e2fa094e976f (diff)
Merge branch 'acpi-fan'
* acpi-fan: ACPI: fan: Initialize performance state sysfs attribute
Diffstat (limited to 'drivers/acpi')
-rw-r--r--drivers/acpi/fan.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/acpi/fan.c b/drivers/acpi/fan.c
index 48354f82fba6..66c3983f0ccc 100644
--- a/drivers/acpi/fan.c
+++ b/drivers/acpi/fan.c
@@ -352,6 +352,7 @@ static int acpi_fan_get_fps(struct acpi_device *device)
struct acpi_fan_fps *fps = &fan->fps[i];
snprintf(fps->name, ACPI_FPS_NAME_LEN, "state%d", i);
+ sysfs_attr_init(&fps->dev_attr.attr);
fps->dev_attr.show = show_state;
fps->dev_attr.store = NULL;
fps->dev_attr.attr.name = fps->name;