Skip to content

Commit

Permalink
ACPI / fan: Improve acpi_device_update_power error message
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Andy Lutomirski authored and Rafael J. Wysocki committed Jan 15, 2016
1 parent afd2ff9 commit f972799
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/acpi/fan.c
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ static int acpi_fan_probe(struct platform_device *pdev)
} else {
result = acpi_device_update_power(device, NULL);
if (result) {
dev_err(&device->dev, "Setting initial power state\n");
dev_err(&device->dev, "Failed to set initial power state\n");
goto end;
}
}
Expand Down

0 comments on commit f972799

Please sign in to comment.