From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755259AbcI2L3g (ORCPT ); Thu, 29 Sep 2016 07:29:36 -0400 Received: from mail-wm0-f66.google.com ([74.125.82.66]:35556 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751418AbcI2L31 (ORCPT ); Thu, 29 Sep 2016 07:29:27 -0400 From: Grant Likely To: linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Grant Likely , Grant Likely , Linn Crosetto , "Rafael J. Wysocki" , Bjorn Helgaas Subject: [PATCH] pci: remove error message when device not present Date: Thu, 29 Sep 2016 12:28:43 +0100 Message-Id: <20160929112843.13552-1-grant.likely@secretlab.ca> X-Mailer: git-send-email 2.9.3 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Reported-by: Jim Hull Signed-off-by: Grant Likely Cc: Linn Crosetto Cc: "Rafael J. Wysocki" Cc: Bjorn Helgaas --- drivers/pci/hotplug/acpiphp_ibm.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/pci/hotplug/acpiphp_ibm.c b/drivers/pci/hotplug/acpiphp_ibm.c index f6221d7..ec43510 100644 --- a/drivers/pci/hotplug/acpiphp_ibm.c +++ b/drivers/pci/hotplug/acpiphp_ibm.c @@ -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; } -- 2.9.3