[4/4] platform/x86: wmi: Replace pr_err() with dev_err()

Message ID 20240206220447.3102-4-W_Armin@gmx.de
State New
Headers
Series [1/4] platform/x86: wmi: Check if WMxx control method exists |

Commit Message

Armin Wolf Feb. 6, 2024, 10:04 p.m. UTC
  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>
---
 drivers/platform/x86/wmi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--
2.39.2
  

Patch

diff --git a/drivers/platform/x86/wmi.c b/drivers/platform/x86/wmi.c
index 396344523bce..63906fdd0abf 100644
--- a/drivers/platform/x86/wmi.c
+++ b/drivers/platform/x86/wmi.c
@@ -1339,7 +1339,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;
 	}