From patchwork Fri Apr 1 13:17:44 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Szyprowski X-Patchwork-Id: 64854 Delivered-To: patch@linaro.org Received: by 10.112.199.169 with SMTP id jl9csp731589lbc; Fri, 1 Apr 2016 06:18:27 -0700 (PDT) X-Received: by 10.98.71.70 with SMTP id u67mr30765267pfa.85.1459516698513; Fri, 01 Apr 2016 06:18:18 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ny6si21355037pab.59.2016.04.01.06.18.18; Fri, 01 Apr 2016 06:18:18 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-samsung-soc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-samsung-soc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-samsung-soc-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752362AbcDANSQ (ORCPT + 4 others); Fri, 1 Apr 2016 09:18:16 -0400 Received: from mailout4.w1.samsung.com ([210.118.77.14]:39458 "EHLO mailout4.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752734AbcDANSO (ORCPT ); Fri, 1 Apr 2016 09:18:14 -0400 Received: from eucpsbgm1.samsung.com (unknown [203.254.199.244]) by mailout4.w1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0O4Y005JRIAB96A0@mailout4.w1.samsung.com> for linux-samsung-soc@vger.kernel.org; Fri, 01 Apr 2016 14:18:11 +0100 (BST) X-AuditID: cbfec7f4-f796c6d000001486-ac-56fe7513ecbb Received: from eusync4.samsung.com ( [203.254.199.214]) by eucpsbgm1.samsung.com (EUCPMTA) with SMTP id CC.01.05254.3157EF65; Fri, 1 Apr 2016 14:18:11 +0100 (BST) Received: from amdc1339.digital.local ([106.116.147.30]) by eusync4.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0O4Y00HG5IA6GI20@eusync4.samsung.com>; Fri, 01 Apr 2016 14:18:11 +0100 (BST) From: Marek Szyprowski To: dri-devel@lists.freedesktop.org, linux-samsung-soc@vger.kernel.org Cc: Marek Szyprowski , Inki Dae , Joonyoung Shim , Seung-Woo Kim , Andrzej Hajda , Krzysztof Kozlowski , Bartlomiej Zolnierkiewicz Subject: [PATCH 5/7] drm/exynos: hdmi: use generic of_device_get_match_data helper Date: Fri, 01 Apr 2016 15:17:44 +0200 Message-id: <1459516666-2004-6-git-send-email-m.szyprowski@samsung.com> X-Mailer: git-send-email 1.9.2 In-reply-to: <1459516666-2004-1-git-send-email-m.szyprowski@samsung.com> References: <1459516666-2004-1-git-send-email-m.szyprowski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprCLMWRmVeSWpSXmKPExsVy+t/xa7rCpf/CDB7+MbC4te4cq8XGGetZ La58fc9mMen+BBaLF/cusli8fmFoMeP8PiaLtUfuslvMmPySzYHT4373cSaPvi2rGD0+b5IL YI7isklJzcksSy3St0vgyvi7bj97wSOOitV7+5gaGLewdzFyckgImEhsWdkKZYtJXLi3nq2L kYtDSGApo8T0Z7eYIZwmJomGH6uYQKrYBAwlut52sYHYIgJuEk2HZ7KCFDELbGGSaN+1EaxI WCBEYtO/bYwgNouAqsTm83dYQWxeAXeJmceXM0Gsk5P4/3IFmM0p4CHR8/8g2BlCQDWXDqxj ncDIu4CRYRWjaGppckFxUnquoV5xYm5xaV66XnJ+7iZGSFh92cG4+JjVIUYBDkYlHt4b0/6G CbEmlhVX5h5ilOBgVhLhTcn7FybEm5JYWZValB9fVJqTWnyIUZqDRUmcd+6u9yFCAumJJanZ qakFqUUwWSYOTqkGxilpM2YG/FoS+P6C1uxGlZ7TpS98P91OMWBJcFxtfWz1qYojoeYLOVfN /LbNZuGPCfJ/gk3KX03czZ+9+5LFNhWFYN2r5yvPue/7Z96ks5JJc+r72Us22eXe1OmPWhC6 dMsTUYPNzky8nkdea+c/4dfs3+CcuIffQkFTXbpDcPndSY8i7/Huu67EUpyRaKjFXFScCABg bpaWJwIAAA== Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org Simplify code by replacing custom code by generic helper. Signed-off-by: Marek Szyprowski --- drivers/gpu/drm/exynos/exynos_hdmi.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) -- 1.9.2 -- To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/gpu/drm/exynos/exynos_hdmi.c b/drivers/gpu/drm/exynos/exynos_hdmi.c index 06105feb6c87..fb1c0f2850dc 100644 --- a/drivers/gpu/drm/exynos/exynos_hdmi.c +++ b/drivers/gpu/drm/exynos/exynos_hdmi.c @@ -2015,7 +2015,6 @@ static struct device_node *hdmi_legacy_phy_dt_binding(struct device *dev) static int hdmi_probe(struct platform_device *pdev) { struct device_node *ddc_node, *phy_node; - const struct of_device_id *match; struct device *dev = &pdev->dev; struct hdmi_context *hdata; struct resource *res; @@ -2025,11 +2024,7 @@ static int hdmi_probe(struct platform_device *pdev) if (!hdata) return -ENOMEM; - match = of_match_device(hdmi_match_types, dev); - if (!match) - return -ENODEV; - - hdata->drv_data = match->data; + hdata->drv_data = of_device_get_match_data(dev); platform_set_drvdata(pdev, hdata);