platform/x86: wmi: Replace pr_err() with dev_err()
authorArmin Wolf <W_Armin@gmx.de>
Tue, 6 Feb 2024 22:04:47 +0000 (23:04 +0100)
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Wed, 7 Feb 2024 13:51:13 +0000 (15:51 +0200)
Using dev_err() allows users to find out from which
device the error message came from.

Signed-off-by: Armin Wolf <W_Armin@gmx.de>
Link: https://lore.kernel.org/r/20240206220447.3102-4-W_Armin@gmx.de
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
drivers/platform/x86/wmi.c

index be3e35a907038d19a9e01a310a8146ed46c49ef0..57026f91c396ba4f0ef907d39cb7566f29542e90 100644 (file)
@@ -1295,7 +1295,7 @@ static int acpi_wmi_probe(struct platform_device *device)
 
        error = parse_wdg(wmi_bus_dev, device);
        if (error) {
-               pr_err("Failed to parse WDG method\n");
+               dev_err(&device->dev, "Failed to parse _WDG method\n");
                return error;
        }