From patchwork Tue Jul 5 18:57:05 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephen Boyd X-Patchwork-Id: 71402 Delivered-To: patch@linaro.org Received: by 10.140.28.4 with SMTP id 4csp459924qgy; Tue, 5 Jul 2016 11:57:18 -0700 (PDT) X-Received: by 10.98.201.210 with SMTP id l79mr34260484pfk.87.1467745038784; Tue, 05 Jul 2016 11:57:18 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 90si5443676pfr.48.2016.07.05.11.57.18; Tue, 05 Jul 2016 11:57:18 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752115AbcGES5Q (ORCPT + 30 others); Tue, 5 Jul 2016 14:57:16 -0400 Received: from mail-pf0-f172.google.com ([209.85.192.172]:34441 "EHLO mail-pf0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750774AbcGES5O (ORCPT ); Tue, 5 Jul 2016 14:57:14 -0400 Received: by mail-pf0-f172.google.com with SMTP id h14so72435255pfe.1 for ; Tue, 05 Jul 2016 11:57:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=1OV9c8mI6uG0aej8xLnQ0YuX4izWERd/sQGSy8eNcOQ=; b=LFaiYcbKgDnCpjDn6L9FQv6JqLb7DNBmKEtjlj7oG04gB6suAnRel1mbCQ6VGsxklL SQM8myLhcWA/PGjKaqbsqEQDRUepjlq8NXMVzALlLmQGT8UJ7bO5HQ/HcbNsc06EmsLJ /yjsNlhC680CiDWsYeGoolD3E0nbdqBVqgXYI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=1OV9c8mI6uG0aej8xLnQ0YuX4izWERd/sQGSy8eNcOQ=; b=Ybu1BHAvZRCUkG4Iqb0rCCcsBSdLO6IpOY1LkPF0QHiz4MYyNU9zeFaEPOJbpgmCcY xCuyXhcQZuZxTS9ASCYjqV3ksv/3UP9Mg+PeoQolhAUJOmzGVYf7VvB5Av1m2Gi0pxVz uQIIZTpyrPaZhdYRHQ1l2AXSKy8WFHuJNN3laSE+ykuXAFvyc5ywOwo+pcF37CTfyIjn kv15GK4PDjmBe/ZgD5BaHAGDyyL1ncy7Y6B9MucZiOt7k1SZxtdvTBnFMNsJO/CVHpCI Ifh9G3OSihq2b2RL7MxIQPgeY2LcksC7McF3FFk43frRt99lgQg5tb4xkgPKmXsgRQCY V2iA== X-Gm-Message-State: ALyK8tJ0fx+eX6A8fl3N1OzmwJycubI7aqra8eH6E3ysDgI6/8IabxXQdq2I36qLEPkBQFjW X-Received: by 10.98.107.129 with SMTP id g123mr34762734pfc.62.1467745028664; Tue, 05 Jul 2016 11:57:08 -0700 (PDT) Received: from localhost.localdomain (ip68-101-172-78.sd.sd.cox.net. [68.101.172.78]) by smtp.gmail.com with ESMTPSA id 6sm6579724pfs.29.2016.07.05.11.57.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 05 Jul 2016 11:57:08 -0700 (PDT) From: Stephen Boyd To: Chanwoo Choi Cc: linux-kernel@vger.kernel.org Subject: [PATCH] extcon: Move extcon_get_edev_by_phandle() errors to dbg level Date: Tue, 5 Jul 2016 11:57:05 -0700 Message-Id: <20160705185705.32353-1-stephen.boyd@linaro.org> X-Mailer: git-send-email 2.9.0.rc2.8.ga28705d Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Sometimes drivers may call this API and expect it to fail because the extcon they're looking for is optional. Let's move these prints to debug level so it doesn't look like there's a problem when there isn't one. Signed-off-by: Stephen Boyd --- drivers/extcon/extcon.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.9.0.rc2.8.ga28705d diff --git a/drivers/extcon/extcon.c b/drivers/extcon/extcon.c index 161acb826334..984f50d5297c 100644 --- a/drivers/extcon/extcon.c +++ b/drivers/extcon/extcon.c @@ -1096,13 +1096,13 @@ struct extcon_dev *extcon_get_edev_by_phandle(struct device *dev, int index) return ERR_PTR(-EINVAL); if (!dev->of_node) { - dev_err(dev, "device does not have a device node entry\n"); + dev_dbg(dev, "device does not have a device node entry\n"); return ERR_PTR(-EINVAL); } node = of_parse_phandle(dev->of_node, "extcon", index); if (!node) { - dev_err(dev, "failed to get phandle in %s node\n", + dev_dbg(dev, "failed to get phandle in %s node\n", dev->of_node->full_name); return ERR_PTR(-ENODEV); }