From patchwork Wed Sep 25 11:51:32 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrzej Hajda X-Patchwork-Id: 2941921 Return-Path: X-Original-To: patchwork-linux-fbdev@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 01B5D9F288 for ; Wed, 25 Sep 2013 11:52:08 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id DFE6B203EB for ; Wed, 25 Sep 2013 11:52:06 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id AB7A4201B4 for ; Wed, 25 Sep 2013 11:52:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755164Ab3IYLwF (ORCPT ); Wed, 25 Sep 2013 07:52:05 -0400 Received: from mailout3.w1.samsung.com ([210.118.77.13]:35990 "EHLO mailout3.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755000Ab3IYLwD (ORCPT ); Wed, 25 Sep 2013 07:52:03 -0400 Received: from eucpsbgm1.samsung.com (unknown [203.254.199.244]) by mailout3.w1.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MTO00HX4JLD4V30@mailout3.w1.samsung.com> for linux-fbdev@vger.kernel.org; Wed, 25 Sep 2013 12:52:02 +0100 (BST) X-AuditID: cbfec7f4-b7f0a6d000007b1b-6e-5242ce620506 Received: from eusync3.samsung.com ( [203.254.199.213]) by eucpsbgm1.samsung.com (EUCPMTA) with SMTP id CB.42.31515.26EC2425; Wed, 25 Sep 2013 12:52:02 +0100 (BST) Received: from AMDC1061.digital.local ([106.116.147.88]) by eusync3.samsung.com (Oracle Communications Messaging Server 7u4-23.01 (7.0.4.23.0) 64bit (built Aug 10 2011)) with ESMTPA id <0MTO006WIJM4SD10@eusync3.samsung.com>; Wed, 25 Sep 2013 12:52:02 +0100 (BST) From: Andrzej Hajda To: linux-fbdev@vger.kernel.org (open list:FRAMEBUFFER LAYER) Cc: Andrzej Hajda , Jean-Christophe Plagniol-Villard , Tomi Valkeinen , dri-devel@lists.freedesktop.org, Kyungmin Park Subject: [PATCH 2/2] video: of: display_timing: remove broken of_display_timings_exist Date: Wed, 25 Sep 2013 13:51:32 +0200 Message-id: <1380109892-13040-3-git-send-email-a.hajda@samsung.com> X-Mailer: git-send-email 1.8.1.2 In-reply-to: <1380109892-13040-1-git-send-email-a.hajda@samsung.com> References: <1380109892-13040-1-git-send-email-a.hajda@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrPJMWRmVeSWpSXmKPExsVy+t/xq7pJ55yCDN5ck7O4te4cq8WVr+/Z LM42vWG3ONH3gdVi3cMXTBbr599ic2DzeHXhDovH/e7jTB59W1Yxehy/sZ3J4/MmuQDWKC6b lNSczLLUIn27BK6MzrObmAqaeCu2tP1lbmCcwt3FyMEhIWAi8a0ho4uRE8gUk7hwbz0biC0k sJRRomu2WBcjF5DdxyQx/dAMRpAEm4CmxN/NN8GKRARsJY49bmUHKWIWuM0oMWvlQVaQhLBA hMShz2vYQWwWAVWJH5PeMIPYvALOEjN+TGaD2KYg8fPyCTaQIzgFXCQun3GCWOwscfzAMsYJ jLwLGBlWMYqmliYXFCel5xrqFSfmFpfmpesl5+duYoQE0pcdjIuPWR1iFOBgVOLhFTjqGCTE mlhWXJl7iFGCg1lJhDd8sVOQEG9KYmVValF+fFFpTmrxIUYmDk6pBsZU7s2MAjrzXpz/6Cjv dYYtvKPx5YYFK2u83Qt32wRyySosERbMqSoy23RCqa7s/tsncmV+TX51q259eJ4+S48xs2m3 f+JT5wXbrwW1cjtO3MiWOzN3++9696fu36e/aTudLMVfrbqSffUZi1d65gZ3FzOEvdl1Jkdn ZeCHBYmuHPUl64/sblRiKc5INNRiLipOBAAeaQHAAgIAAA== Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org X-Spam-Status: No, score=-8.9 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 of_display_timings_exist is implemented incorrectly. It tries to find property instead of node. The function is not used anyway so the patch removes it. Signed-off-by: Andrzej Hajda Signed-off-by: Kyungmin Park --- drivers/video/of_display_timing.c | 20 -------------------- include/video/of_display_timing.h | 1 - 2 files changed, 21 deletions(-) diff --git a/drivers/video/of_display_timing.c b/drivers/video/of_display_timing.c index ba5b40f..b423bb9 100644 --- a/drivers/video/of_display_timing.c +++ b/drivers/video/of_display_timing.c @@ -247,23 +247,3 @@ dispfail: return NULL; } EXPORT_SYMBOL_GPL(of_get_display_timings); - -/** - * of_display_timings_exist - check if a display-timings node is provided - * @np: device_node with the timing - **/ -int of_display_timings_exist(struct device_node *np) -{ - struct device_node *timings_np; - - if (!np) - return -EINVAL; - - timings_np = of_parse_phandle(np, "display-timings", 0); - if (!timings_np) - return -EINVAL; - - of_node_put(timings_np); - return 1; -} -EXPORT_SYMBOL_GPL(of_display_timings_exist); diff --git a/include/video/of_display_timing.h b/include/video/of_display_timing.h index 79e6697..16cde75 100644 --- a/include/video/of_display_timing.h +++ b/include/video/of_display_timing.h @@ -18,6 +18,5 @@ struct display_timings; int of_get_display_timing(struct device_node *np, const char *name, struct display_timing *dt); struct display_timings *of_get_display_timings(struct device_node *np); -int of_display_timings_exist(struct device_node *np); #endif