diff options
| author | Armin Wolf <[email protected]> | 2024-02-06 22:04:47 +0000 |
|---|---|---|
| committer | Ilpo Järvinen <[email protected]> | 2024-02-07 13:51:13 +0000 |
| commit | fde7da1072f3c0239a80b590e7b75c9411e8b630 (patch) | |
| tree | d1a709ecf766542684e2f3a8b4d9c78cbb84f9ba /drivers/platform/x86/wmi.c | |
| parent | platform/x86: wmi: Remove unnecessary out-of-memory message (diff) | |
| download | kernel-fde7da1072f3c0239a80b590e7b75c9411e8b630.tar.gz kernel-fde7da1072f3c0239a80b590e7b75c9411e8b630.zip | |
platform/x86: wmi: Replace pr_err() with dev_err()
Using dev_err() allows users to find out from which
device the error message came from.
Signed-off-by: Armin Wolf <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Reviewed-by: Ilpo Järvinen <[email protected]>
Signed-off-by: Ilpo Järvinen <[email protected]>
Diffstat (limited to 'drivers/platform/x86/wmi.c')
| -rw-r--r-- | drivers/platform/x86/wmi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/platform/x86/wmi.c b/drivers/platform/x86/wmi.c index be3e35a90703..57026f91c396 100644 --- a/drivers/platform/x86/wmi.c +++ b/drivers/platform/x86/wmi.c @@ -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; } |
