From patchwork Tue Sep 18 18:35:41 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Leela Krishna Amudala X-Patchwork-Id: 1473831 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by patchwork2.kernel.org (Postfix) with ESMTP id DC509DF24C for ; Tue, 18 Sep 2012 16:44:43 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id AD417A0A69 for ; Tue, 18 Sep 2012 09:44:43 -0700 (PDT) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mailout4.samsung.com (mailout4.samsung.com [203.254.224.34]) by gabe.freedesktop.org (Postfix) with ESMTP id 588E49E949 for ; Tue, 18 Sep 2012 05:36:51 -0700 (PDT) Received: from epcpsbgm1.samsung.com (epcpsbgm1 [203.254.230.26]) by mailout4.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MAJ00KAVPPDI341@mailout4.samsung.com> for dri-devel@lists.freedesktop.org; Tue, 18 Sep 2012 21:36:49 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [172.20.52.124]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 10.0A.03783.1EA68505; Tue, 18 Sep 2012 21:36:49 +0900 (KST) X-AuditID: cbfee61a-b7f726d000000ec7-7a-50586ae178eb Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id BF.F9.03783.1EA68505; Tue, 18 Sep 2012 21:36:49 +0900 (KST) Received: from localhost.localdomain ([107.108.73.106]) by mmp2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0MAJ00G3TPNWJ0B0@mmp2.samsung.com> for dri-devel@lists.freedesktop.org; Tue, 18 Sep 2012 21:36:49 +0900 (KST) From: Leela Krishna Amudala To: dri-devel@lists.freedesktop.org, devicetree-discuss@lists.ozlabs.org Subject: [PATCH] video: drm: Add match table for drm platform device Date: Wed, 19 Sep 2012 00:05:41 +0530 Message-id: <1347993341-11340-1-git-send-email-l.krishna@samsung.com> X-Mailer: git-send-email 1.7.0.4 DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrMLMWRmVeSWpSXmKPExsWyRsSkRvdhVkSAwZsN8hZXvr5nc2D0uN99 nCmAMYrLJiU1J7MstUjfLoEr42TnFdaCnRwVFxu+sjUw9rF3MXJySAiYSPybv4EFwhaTuHBv PRuILSSwlFFi1TQWmJrH+xpZuxi5gOLTGSWev9zGDuGsZpLYsvUlWBWbgLHE/bmbmUBsEQEP idWzlzKD2MwCmRKHOyewgtjCAi4SWzevBqtnEVCV6FvYBDSIg4NXwFVi5o0CiGUKEq3LDrFD lAhIfJt8iAWkREJAVmLTAWaQtRICO9gkWvevZ4Kol5Q4uOIGywRGwQWMDKsYRVMLkguKk9Jz DfWKE3OLS/PS9ZLzczcxAkPq9L9nUjsYVzZYHGIU4GBU4uENdAkPEGJNLCuuzD3EKMHBrCTC +zYiIkCINyWxsiq1KD++qDQntfgQow/QJROZpUST84HhnlcSb2hsYm5qbGppZGRmaopDWEmc V/hTYICQQHpiSWp2ampBahHMOCYOTqkGxm3PX5z8eq/56aoEXXnO5c8WtizPYlV596AtSyWD kSlRyGT/oeJQVQmdlbr8msvd7LvF9+leU++9yKdYs3rBIZ2DTe/+n9eqE7jPe+wH8zSpbmPv nDPbj328verQN9VDRfvq/0g4z5m16vr3Bwx66joR4q/jVZT+Vj1WWxL5eOJ3admZkbMllZRY ijMSDbWYi4oTASni119WAgAA X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrMLMWRmVeSWpSXmKPExsVy+t9jQd2HWREBBis/iltc+fqezYHR4373 caYAxqgGRpuM1MSU1CKF1Lzk/JTMvHRbJe/geOd4UzMDQ11DSwtzJYW8xNxUWyUXnwBdt8wc oLFKCmWJOaVAoYDE4mIlfTtME0JD3HQtYBojdH1DguB6jAzQQMIaxoyTnVdYC3ZyVFxs+MrW wNjH3sXIySEhYCLxeF8jK4QtJnHh3nq2LkYuDiGB6YwSz19uY4dwVjNJbNn6kgWkik3AWOL+ 3M1MILaIgIfE6tlLmUFsZoFMicOdE8AmCQu4SGzdvBqsnkVAVaJvYRPQIA4OXgFXiZk3CiCW KUi0LjvEPoGRewEjwypG0dSC5ILipPRcQ73ixNzi0rx0veT83E2M4JB9JrWDcWWDxSFGAQ5G JR7eQJfwACHWxLLiytxDjBIczEoivG8jIgKEeFMSK6tSi/Lji0pzUosPMfoALZ/ILCWanA+M p7ySeENjE3NTY1NLEwsTM0scwkrivMKfAgOEBNITS1KzU1MLUotgxjFxcEo1MFp86di/wP+M 3sq34ebNE/foVIixmqtdeVFSKX8s9tzODJ5tlxfsqioJnZe6fr9Iptn21a+1f+R+Tjz74ZXj uZ08OR4FteWyQd8+rP/uKqJU+zPi4Z3bFj7pdRZeRsn91au1uoQ0Q9wW7/7zePetPFP9AqsH j67qZ/ObbOA+1lPWOtc7Z6rNASWW4oxEQy3mouJEAJXG+zSGAgAA X-CFilter-Loop: Reflected X-Mailman-Approved-At: Tue, 18 Sep 2012 09:43:43 -0700 Cc: kgene.kim@samsung.com, jg1.han@samsung.com, linux-samsung-soc@vger.kernel.org X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: dri-devel-bounces+patchwork-dri-devel=patchwork.kernel.org@lists.freedesktop.org Errors-To: dri-devel-bounces+patchwork-dri-devel=patchwork.kernel.org@lists.freedesktop.org This patch adds match table for drm platform device. Signed-off-by: Leela Krishna Amudala --- drivers/gpu/drm/exynos/exynos_drm_drv.c | 9 +++++++++ 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/drivers/gpu/drm/exynos/exynos_drm_drv.c b/drivers/gpu/drm/exynos/exynos_drm_drv.c index d070719..18abdcc 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_drv.c +++ b/drivers/gpu/drm/exynos/exynos_drm_drv.c @@ -294,12 +294,21 @@ static int exynos_drm_platform_remove(struct platform_device *pdev) return 0; } +#ifdef CONFIG_OF +static const struct of_device_id drm_device_dt_match[] = { + { .compatible = "samsung,exynos-drm-device"}, + {}, +}; +MODULE_DEVICE_TABLE(of, drm_device_dt_match); +#endif + static struct platform_driver exynos_drm_platform_driver = { .probe = exynos_drm_platform_probe, .remove = __devexit_p(exynos_drm_platform_remove), .driver = { .owner = THIS_MODULE, .name = "exynos-drm", + .of_match_table = of_match_ptr(drm_device_dt_match), }, };