ACPI / fan: Improve acpi_device_update_power error message
authorAndy Lutomirski <luto@kernel.org>
Wed, 13 Jan 2016 22:25:19 +0000 (14:25 -0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 15 Jan 2016 21:00:08 +0000 (22:00 +0100)
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>
drivers/acpi/fan.c

index e297a480e1350318eda9604910a00991662787c0..6322db64b4a4b999180e8eb818c5279a0b23ef37 100644 (file)
@@ -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;
                }
        }