Commit f9727999 authored by Andy Lutomirski's avatar Andy Lutomirski Committed by Rafael J. Wysocki

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: default avatarAndy Lutomirski <luto@kernel.org>
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
parent afd2ff9b
...@@ -339,7 +339,7 @@ static int acpi_fan_probe(struct platform_device *pdev) ...@@ -339,7 +339,7 @@ static int acpi_fan_probe(struct platform_device *pdev)
} else { } else {
result = acpi_device_update_power(device, NULL); result = acpi_device_update_power(device, NULL);
if (result) { if (result) {
dev_err(&device->dev, "Setting initial power state\n"); dev_err(&device->dev, "Failed to set initial power state\n");
goto end; goto end;
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment