From patchwork Wed Jul 11 08:44:47 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: 1181271 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 4DFD0DF25A for ; Wed, 11 Jul 2012 10:29:43 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 33086A0944 for ; Wed, 11 Jul 2012 03:29: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 89AD9A0DA7 for ; Wed, 11 Jul 2012 01:30:56 -0700 (PDT) Received: from epcpsbgm1.samsung.com (mailout4.samsung.com [203.254.224.34]) by mailout4.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0M6Z00GOJMB718A0@mailout4.samsung.com> for dri-devel@lists.freedesktop.org; Wed, 11 Jul 2012 17:30:55 +0900 (KST) X-AuditID: cbfee61a-b7f616d000004b7e-f6-4ffd39bfd934 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id D1.43.19326.FB93DFF4; Wed, 11 Jul 2012 17:30:55 +0900 (KST) Received: from localhost.localdomain ([107.108.73.106]) by mmp1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0M6Z004UMMB2HL60@mmp1.samsung.com> for dri-devel@lists.freedesktop.org; Wed, 11 Jul 2012 17:30:55 +0900 (KST) From: Leela Krishna Amudala To: dri-devel@lists.freedesktop.org, devicetree-discuss@lists.ozlabs.org Subject: [PATCH V2 2/2] drm/exynos: Modifying exynos drm fimd to support exynos5 Date: Wed, 11 Jul 2012 14:14:47 +0530 Message-id: <1341996287-14666-3-git-send-email-l.krishna@samsung.com> X-Mailer: git-send-email 1.7.0.4 In-reply-to: <1341996287-14666-1-git-send-email-l.krishna@samsung.com> References: <1341996287-14666-1-git-send-email-l.krishna@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrPJMWRmVeSWpSXmKPExsVy+t9jAd39ln/9DboXilpc+fqezYHR4373 caYAxigum5TUnMyy1CJ9uwSujM7Fy9kKXnBXtDwNa2D8yNnFyMkhIWAiMf3AG3YIW0ziwr31 bF2MXBxCAosYJa7smQ+WEBJYzSTRe84PxGYTMJa4P3czE4gtIuAhsXr2UmaQBmaB+YwS0281 AyU4OIQFAiTeThcDMVkEVCW+nawEMXkFXCUadphBrFKQaF12CGw6p4CbxPvVExghNrlKTN61 jW0CI+8CRoZVjKKpBckFxUnpuYZ6xYm5xaV56XrJ+bmbGMHefia1g3Flg8UhRgEORiUe3hsm f/2FWBPLiitzDzFKcDArifByzvnjL8SbklhZlVqUH19UmpNafIhRmoNFSZzX2Purv5BAemJJ anZqakFqEUyWiYNTqoHRsvrYRdZlndm1t/bprOIXi5N9rr/wknF867P5i1ZWuBUWM5yfO8vf pcs1xjRAUPtfinx86parZYcWTmGVUf58jHN5tPSzp4JMHo76bla5AV8YJZwm7Nnmv3ib/C7L bS+0/Qp5m5k1ls0MkfOIq9sk/lBbauoaCdlKs5TldlcKVzIe/3JgX6ASS3FGoqEWc1FxIgBV CYTa8gEAAA== X-TM-AS-MML: No X-Mailman-Approved-At: Wed, 11 Jul 2012 03:27:41 -0700 Cc: Prathyush K , joshi@samsung.com, inki.dae@samsung.com, laurent.pinchart@ideasonboard.com, olofj@google.com 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 From: Prathyush K The name of the exynos drm fimd device is renamed to exynos-drm-fimd and two ids are created from exynos4-fb and exynos5-fb. Signed-off-by: Prathyush K --- drivers/gpu/drm/exynos/exynos_drm_fimd.c | 13 ++++++++++++- 1 files changed, 12 insertions(+), 1 deletions(-) diff --git a/drivers/gpu/drm/exynos/exynos_drm_fimd.c b/drivers/gpu/drm/exynos/exynos_drm_fimd.c index 6f06260..0a28a55 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_fimd.c +++ b/drivers/gpu/drm/exynos/exynos_drm_fimd.c @@ -1089,6 +1089,16 @@ static const struct of_device_id drm_fimd_dt_match[] = { MODULE_DEVICE_TABLE(of, drm_fimd_dt_match); #endif +static struct platform_device_id exynos_drm_driver_ids[] = { + { + .name = "exynos4-fb", + }, { + .name = "exynos5-fb", + }, + {}, +}; +MODULE_DEVICE_TABLE(platform, exynos_drm_driver_ids); + static const struct dev_pm_ops fimd_pm_ops = { SET_SYSTEM_SLEEP_PM_OPS(fimd_suspend, fimd_resume) SET_RUNTIME_PM_OPS(fimd_runtime_suspend, fimd_runtime_resume, NULL) @@ -1097,8 +1107,9 @@ static const struct dev_pm_ops fimd_pm_ops = { struct platform_driver fimd_driver = { .probe = fimd_probe, .remove = __devexit_p(fimd_remove), + .id_table = exynos_drm_driver_ids, .driver = { - .name = "exynos4-fb", + .name = "exynos-drm-fimd", .owner = THIS_MODULE, .pm = &fimd_pm_ops, .of_match_table = of_match_ptr(drm_fimd_dt_match),