From patchwork Thu Sep 29 11:28:43 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Grant Likely X-Patchwork-Id: 9356369 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id D9D766077A for ; Thu, 29 Sep 2016 11:29:32 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C8D8129960 for ; Thu, 29 Sep 2016 11:29:32 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BB70029964; Thu, 29 Sep 2016 11:29:32 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.3 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CE5A629960 for ; Thu, 29 Sep 2016 11:29:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755094AbcI2L33 (ORCPT ); Thu, 29 Sep 2016 07:29:29 -0400 Received: from mail-wm0-f66.google.com ([74.125.82.66]:33663 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754707AbcI2L32 (ORCPT ); Thu, 29 Sep 2016 07:29:28 -0400 Received: by mail-wm0-f66.google.com with SMTP id w84so10229124wmg.0 for ; Thu, 29 Sep 2016 04:29:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=secretlab-ca.20150623.gappssmtp.com; s=20150623; h=sender:from:to:cc:subject:date:message-id; bh=exDmYpYDJjlJjSJfFyQ86GxKYS9KK+Ywvp9zosv+NyY=; b=Ryleoojo8jpiqKrKRrsQZcZgLv/B3OUAARQa7h2BHm0CqQdwD8KnsQaKN1+v2D2Y3Z op2aPbVhjlA1kw1Lx0jo6ySd4OeeiOltcIi8TeUsTyWIgUTFY97mbN0/+W+ZmxV6JQLV 0gWHcqq+0RNAu2Kw/wRPII4R/SLnllXZSh2xxOmL4dXOocEDaPFznr7mie/Z8sHxesUi Tc8IXetyMr+na/r5bB1i+C/+WagQOUeO3HGBYQx7vHR9utRss5d4WfgKCqHM4gzW9AJJ VUftZgsp6pvBgXHbFHCD5ec6CcAgp/hauGbGCFj5QX4wwFFDzg2i+RiuUeHvBt3n58f3 v5VQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id; bh=exDmYpYDJjlJjSJfFyQ86GxKYS9KK+Ywvp9zosv+NyY=; b=g/O8Ee8QlG3bVHMEhxJ77aOh5UMI+nvrqJiM0B6WcrMgb3CPKnJ4loD4+dWSz90PJ2 Zvj0xr10ikRlARlNBoPKEElSbkjY5UHijzDiiFLuGOa/XqNmw7yO8AcTiu2baVZFwOH1 R8aeot9PCjRQJXa84S7gVZ3PqxaTjsyuwy6J8UWHfPnkBvvJ6LLtH0Yo4cqxEQg/cH31 Y2DAqI5xb9wFeEdKUfqtNjXFKlNPGHgZgGILVuMKYA052C+02LEcVvIP/VDVdNQuCXly s5d81qSRncDw+D9+Ecn+suiF6A4LVsn6UOtjy8/ZYHi6998FbAltyeAVGzn6ar6PEbT3 vAVQ== X-Gm-Message-State: AA6/9RmZI4chDn2ggo9YVrMnyUR2j6B9bHajTWadmJSKlmcQ7wCgCxaT9UoX1jSF4OV8aw== X-Received: by 10.28.209.1 with SMTP id i1mr2577641wmg.0.1475148566422; Thu, 29 Sep 2016 04:29:26 -0700 (PDT) Received: from gladys.secretlab.ca (host81-159-188-90.range81-159.btcentralplus.com. [81.159.188.90]) by smtp.gmail.com with ESMTPSA id e12sm27685339wmg.17.2016.09.29.04.29.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 29 Sep 2016 04:29:25 -0700 (PDT) Received: by gladys.secretlab.ca (Postfix, from userid 1000) id F3A13C3913; Thu, 29 Sep 2016 12:29:15 +0100 (BST) 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-acpi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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; }