Skip to content

Commit 80167a2

Browse files
committed
ACPI / scan: Change the level of _DEP-related messages to KERN_DEBUG
Two _DEP-related failure messages are printed as dev_err() which is unnecessary and annoying. Use dev_dbg() to print them. While at it, one of the messages should actually say it is related to _DEP, so modify it to that effect. Fixes: 40e7fcb (ACPI: Add _DEP support to fix battery issue on Asus T100TA) Reported-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
1 parent 40e7fcb commit 80167a2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/acpi/scan.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2107,7 +2107,7 @@ static void acpi_device_dep_initialize(struct acpi_device *adev)
21072107
status = acpi_evaluate_reference(adev->handle, "_DEP", NULL,
21082108
&dep_devices);
21092109
if (ACPI_FAILURE(status)) {
2110-
dev_err(&adev->dev, "Failed to evaluate _DEP.\n");
2110+
dev_dbg(&adev->dev, "Failed to evaluate _DEP.\n");
21112111
return;
21122112
}
21132113

@@ -2117,7 +2117,7 @@ static void acpi_device_dep_initialize(struct acpi_device *adev)
21172117

21182118
status = acpi_get_object_info(dep_devices.handles[i], &info);
21192119
if (ACPI_FAILURE(status)) {
2120-
dev_err(&adev->dev, "Error reading device info\n");
2120+
dev_dbg(&adev->dev, "Error reading _DEP device info\n");
21212121
continue;
21222122
}
21232123

0 commit comments

Comments
 (0)