Skip to contentSkip to conversation

pci: remove error message when device not present

PATCH In review Grant Likely 2 participants 2 messages Sep 29, 2016

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 pci: remove error message when device not present

It's not an error if the IBM ACPI pseudo-device isn't present, it merely means the kernel isn't running on that IBM hardware. Get rid of the error report so as not to pollute the kernel log with an message irrelevant to the vast majority of users.

If someone wants to debug it, they can turn on the pr_debug() message which will show progress through the .init function.

Cc Linn Crosetto <[email protected]>
Cc "Rafael J. Wysocki" <[email protected]>
Cc Bjorn Helgaas <[email protected]>
---
 drivers/pci/hotplug/acpiphp_ibm.c | 1 -
 1 file changed, 1 deletion(-)
drivers/pci/hotplug/acpiphp_ibm.c +0 -1
index f6221d7..ec43510 100644
@@ -439,7 +439,6 @@ static int __init ibm_acpiphp_init(void)
 	if (acpi_walk_namespace(ACPI_TYPE_DEVICE, ACPI_ROOT_OBJECT,
 			ACPI_UINT32_MAX, ibm_find_acpi_device, NULL,
 			&ibm_acpi_handle, NULL) != FOUND_APCI) {
-		pr_err("%s: acpi_walk_namespace failed\n", __func__);
 		retval = -ENODEV;
 		goto init_return;
 	}
Signature · 1 line
2.9.3
#1 lore raw
Quoted 5 lines · Grant Likely

It's not an error if the IBM ACPI pseudo-device isn't present, it merely means the kernel isn't running on that IBM hardware. Get rid of the error report so as not to pollute the kernel log with an message irrelevant to the vast majority of users.

Quoted 8 lines

If someone wants to debug it, they can turn on the pr_debug() message which will show progress through the .init function.

Cc Linn Crosetto <[email protected]>
Cc "Rafael J. Wysocki" <[email protected]>
Cc Bjorn Helgaas <[email protected]>

ACK

Quoted 10 lines
---
 drivers/pci/hotplug/acpiphp_ibm.c | 1 -
 1 file changed, 1 deletion(-)
drivers/pci/hotplug/acpiphp_ibm.c +0 -0
index f6221d7..ec43510 100644

drivers/pci/hotplug/acpiphp_ibm.c static int __init ibm_acpiphp_init(void) · line 444

Quoted 7 lines
drivers/pci/hotplug/acpiphp_ibm.c +0 -1
@@ -439,7 +439,6 @@ static int __init ibm_acpiphp_init(void)
 	if (acpi_walk_namespace(ACPI_TYPE_DEVICE, ACPI_ROOT_OBJECT,
 			ACPI_UINT32_MAX, ibm_find_acpi_device, NULL,
 			&ibm_acpi_handle, NULL) != FOUND_APCI) {
-		pr_err("%s: acpi_walk_namespace failed\n", __func__);
 		retval = -ENODEV;
 		goto init_return;
 	}

Thanks,
Rafael