From patchwork Thu Nov 19 08:17:45 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chanwoo Choi X-Patchwork-Id: 7655681 Return-Path: X-Original-To: patchwork-linux-pm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 53ACCBF90C for ; Thu, 19 Nov 2015 08:18:03 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 7746920602 for ; Thu, 19 Nov 2015 08:18:02 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 0600A2052A for ; Thu, 19 Nov 2015 08:18:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756216AbbKSIR6 (ORCPT ); Thu, 19 Nov 2015 03:17:58 -0500 Received: from mailout1.samsung.com ([203.254.224.24]:51455 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753065AbbKSIR5 (ORCPT ); Thu, 19 Nov 2015 03:17:57 -0500 Received: from epcpsbgr2.samsung.com (u142.gpu120.samsung.co.kr [203.254.230.142]) by mailout1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0NY100FFKZ1VW850@mailout1.samsung.com>; Thu, 19 Nov 2015 17:17:55 +0900 (KST) Received: from epcpsbgm1new.samsung.com ( [172.20.52.113]) by epcpsbgr2.samsung.com (EPCPMTA) with SMTP id 52.8A.17463.3B58D465; Thu, 19 Nov 2015 17:17:55 +0900 (KST) X-AuditID: cbfee68e-f79f56d000004437-ee-564d85b38d55 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm1new.samsung.com (EPCPMTA) with SMTP id 39.0E.24993.3B58D465; Thu, 19 Nov 2015 17:17:55 +0900 (KST) Received: from chan.10.32.193.11 ([10.252.81.195]) by mmp1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0NY1003GGZ1VYC80@mmp1.samsung.com>; Thu, 19 Nov 2015 17:17:55 +0900 (KST) From: Chanwoo Choi To: myungjoo.ham@samsung.com, kyungmin.park@samsung.com Cc: linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, Chanwoo Choi Subject: [PATCH 1/6] PM / devfreq: event: Remove the error log of devfreq_event_get_edev_by_phandle() Date: Thu, 19 Nov 2015 17:17:45 +0900 Message-id: <1447921070-6045-2-git-send-email-cw00.choi@samsung.com> X-Mailer: git-send-email 1.8.0 In-reply-to: <1447921070-6045-1-git-send-email-cw00.choi@samsung.com> References: <1447921070-6045-1-git-send-email-cw00.choi@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrILMWRmVeSWpSXmKPExsWyRsSkUHdzq2+YwZd3yhbXvzxntTjb9Ibd 4vKuOWwWn3uPMFrcblzB5sDq0bdlFaPH501yAUxRXDYpqTmZZalF+nYJXBlXv+sXLOSpOH62 k62BcSpXFyMnh4SAicSBW+fZIWwxiQv31rN1MXJxCAmsYJRYdqabDaao+exfFhBbSGApo8Tl 06YQRV8YJQ6fusYKkmAT0JLY/+IGWIOIgLnErqU/wWxmgSSJ82ubwGqEBdIl7i/ayAxiswio SszvbwGL8wq4SKybNIMJYpmcxIc9j8Au4hRwlTi+/hQjxGIXiVvdT9hBFksIfGeTmPn+CCvE IAGJb5MPAV3HAZSQldh0gBlijqTEwRU3WCYwCi9gZFjFKJpakFxQnJReZKRXnJhbXJqXrpec n7uJERiyp/8969vBePOA9SFGAQ5GJR7eDad8woRYE8uKK3MPMZoCbZjILCWanA+MjLySeENj MyMLUxNTYyNzSzMlcd4EqZ/BQgLpiSWp2ampBalF8UWlOanFhxiZODilGhinz/I88dfFxvFJ DPPaohkvdk29y38n9a9V59euG1esxSvNOEIivgeeUEq5wnJiNQ+74Zrp249o/itgXz6//awZ x8mS/TLTb1Xrf/Dc0XR1mZnVqZ8L738yqnm5tU30nNS8v4/MP95Z/4jzoLlztsHkryk9inPf tWbHuDVu/nfdtFB50pyW82mflFiKMxINtZiLihMB+FAl31QCAAA= X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFupjkeLIzCtJLcpLzFFi42I5/e+xgO7mVt8wg19X5C2uf3nOanG26Q27 xeVdc9gsPvceYbS43biCzYHVo2/LKkaPz5vkApiiGhhtMlITU1KLFFLzkvNTMvPSbZW8g+Od 403NDAx1DS0tzJUU8hJzU22VXHwCdN0yc4DWKSmUJeaUAoUCEouLlfTtME0IDXHTtYBpjND1 DQmC6zEyQAMJaxgzrn7XL1jIU3H8bCdbA+NUri5GTg4JAROJ5rN/WSBsMYkL99azgdhCAksZ JS6fNu1i5AKyvzBKHD51jRUkwSagJbH/xQ2wIhEBc4ldS3+C2cwCSRLn1zaB1QgLpEvcX7SR GcRmEVCVmN/fAhbnFXCRWDdpBhPEMjmJD3sesYPYnAKuEsfXn2KEWOwicav7CfsERt4FjAyr GCVSC5ILipPScw3zUsv1ihNzi0vz0vWS83M3MYLj4pnUDsaDu9wPMQpwMCrx8G445RMmxJpY VlyZe4hRgoNZSYT3QZlvmBBvSmJlVWpRfnxRaU5q8SFGU6DDJjJLiSbnA2M2ryTe0NjEzMjS yNzQwsjYXEmcV9/TKExIID2xJDU7NbUgtQimj4mDU6qBcZn283czDmwxlS+f8k5g9pcqPm6T yZkJT4NC1733ebQ4RrrwvZjMmceSae47nv5mtPz5fob37ueX5/Xu+N7pOFllZ3M9s0DjyZ/R yrdfnXB2u6V4T7RuxaVLOTdt5U+WlOo7iIh/M28Prg7SejVvYuOF06+VFjaUFj6UfP36wfz+ LS/leyUnv1RiKc5INNRiLipOBAA5gL8RoQIAAA== DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Spam-Status: No, score=-7.5 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This patch just removes the error log when devfreq_event_get_edev_by_phandle() fail to get the instance of devfreq-event device. It is related to sequence of the probe() of each driver. So, this error log might show the always during kernel booting. Instead, each driver using this function can show the appropriate error log. Signed-off-by: Chanwoo Choi --- drivers/devfreq/devfreq-event.c | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/drivers/devfreq/devfreq-event.c b/drivers/devfreq/devfreq-event.c index f304a0289eda..f51de879b2be 100644 --- a/drivers/devfreq/devfreq-event.c +++ b/drivers/devfreq/devfreq-event.c @@ -226,17 +226,12 @@ struct devfreq_event_dev *devfreq_event_get_edev_by_phandle(struct device *dev, struct device_node *node; struct devfreq_event_dev *edev; - if (!dev->of_node) { - dev_err(dev, "device does not have a device node entry\n"); + if (!dev->of_node) return ERR_PTR(-EINVAL); - } node = of_parse_phandle(dev->of_node, "devfreq-events", index); - if (!node) { - dev_err(dev, "failed to get phandle in %s node\n", - dev->of_node->full_name); + if (!node) return ERR_PTR(-ENODEV); - } mutex_lock(&devfreq_event_list_lock); list_for_each_entry(edev, &devfreq_event_list, node) { @@ -248,8 +243,6 @@ out: mutex_unlock(&devfreq_event_list_lock); if (!edev) { - dev_err(dev, "unable to get devfreq-event device : %s\n", - node->name); of_node_put(node); return ERR_PTR(-ENODEV); }