aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/acpi
diff options
context:
space:
mode:
authorAndy Lutomirski <luto@kernel.org>2016-01-13 17:25:19 -0500
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2016-01-15 16:00:08 -0500
commitf9727999694f76d329738614f2fd61d800509319 (patch)
tree46f0342a139bd4304e92a0425d9e26ac6c7ed3ac /drivers/acpi
parentafd2ff9b7e1b367172f18ba7f693dfb62bdcb2dc (diff)
ACPI / fan: Improve acpi_device_update_power error message
On my laptop, I see "Setting initial power state" on boot. It's a firmware bug on my laptop, but the message made me think that the initial power state was bogus and the driver fixed it. The error actually means that the driver failed to set the initial power state. Fix the message. Signed-off-by: Andy Lutomirski <luto@kernel.org> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/acpi')
-rw-r--r--drivers/acpi/fan.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/acpi/fan.c b/drivers/acpi/fan.c
index e297a480e135..6322db64b4a4 100644
--- a/drivers/acpi/fan.c
+++ b/drivers/acpi/fan.c
@@ -339,7 +339,7 @@ static int acpi_fan_probe(struct platform_device *pdev)
339 } else { 339 } else {
340 result = acpi_device_update_power(device, NULL); 340 result = acpi_device_update_power(device, NULL);
341 if (result) { 341 if (result) {
342 dev_err(&device->dev, "Setting initial power state\n"); 342 dev_err(&device->dev, "Failed to set initial power state\n");
343 goto end; 343 goto end;
344 } 344 }
345 } 345 }