From patchwork Fri Jul 6 12:28:14 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: 1168371 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by patchwork1.kernel.org (Postfix) with ESMTP id 88B2B3FC33 for ; Sat, 7 Jul 2012 00:21:59 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id B273B9E90A for ; Fri, 6 Jul 2012 17:16:58 -0700 (PDT) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mailout1.samsung.com (mailout1.samsung.com [203.254.224.24]) by gabe.freedesktop.org (Postfix) with ESMTP id C105A9ECBD for ; Fri, 6 Jul 2012 05:24:44 -0700 (PDT) Received: from epcpsbgm2.samsung.com (mailout1.samsung.com [203.254.224.24]) by mailout1.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0M6Q00D81NC7D701@mailout1.samsung.com> for dri-devel@lists.freedesktop.org; Fri, 06 Jul 2012 21:14:42 +0900 (KST) X-AuditID: cbfee61b-b7f566d000005c8a-ad-4ff6d6b08cbd Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id 10.1F.23690.0B6D6FF4; Fri, 06 Jul 2012 21:14:40 +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 <0M6Q00HEONBZZ790@mmp2.samsung.com> for dri-devel@lists.freedesktop.org; Fri, 06 Jul 2012 21:14:40 +0900 (KST) From: Leela Krishna Amudala To: dri-devel@lists.freedesktop.org Subject: [PATCH 2/2] drm/exynos: Modifying exynos drm fimd to support exynos5 Date: Fri, 06 Jul 2012 17:58:14 +0530 Message-id: <1341577694-28937-3-git-send-email-l.krishna@samsung.com> X-Mailer: git-send-email 1.7.0.4 In-reply-to: <1341577694-28937-1-git-send-email-l.krishna@samsung.com> References: <1341577694-28937-1-git-send-email-l.krishna@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrMJMWRmVeSWpSXmKPExsVy+t9jQd0N1775G/x/om1x5et7NgdGj/vd x5kCGKO4bFJSczLLUov07RK4Mno/2xe846o4uuYzUwNjF2cXIyeHhICJxJrLm9ggbDGJC/fW A9lcHEIC0xklZp9tYoVwVjNJ9C04zQhSxSZgLHF/7mYmEFtEQFni78RVjCBFzAJdjBJTHywC GyUs4CvR9eswmM0ioCox+/4xMJtXwFXizMPHUOsUJFqXHWIHsTkF3CS6G7pZQGwhoJo/K9cz TWDkXcDIsIpRNLUguaA4KT3XSK84Mbe4NC9dLzk/dxMj2OvPpHcwrmqwOMQowMGoxMP74sI3 fyHWxLLiytxDjBIczEoivCorgEK8KYmVValF+fFFpTmpxYcYpTlYlMR5Tby/+gsJpCeWpGan phakFsFkmTg4pRoYN01K31n+sa63jOH4nKCQd0vWzvjP7rCc8T3XicrltqtKLv/e8vHflCuM LybbMTNMW+tnkjJPNEFqWvbz8AcTylmflZyf+2my4U3zI7b7otfw2MyLkaxac55n2uWq8HVL f2/ceLAow1xSsPdZUPbmWdIT7/zJ0W9+2XVks7Ly8lthf40n7pTr26/EUpyRaKjFXFScCAAX 3pSV9gEAAA== X-TM-AS-MML: No X-Mailman-Approved-At: Fri, 06 Jul 2012 17:14:38 -0700 Cc: inki.dae@samsung.com, olofj@google.com, laurent.pinchart@ideasonboard.com, Prathyush K 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 for exynos4-fb and exynos5-fb. Signed-off-by: Prathyush K diff --git a/drivers/gpu/drm/exynos/exynos_drm_fimd.c b/drivers/gpu/drm/exynos/exynos_drm_fimd.c index 37769cf..f7bb0a0 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_fimd.c +++ b/drivers/gpu/drm/exynos/exynos_drm_fimd.c @@ -1092,6 +1092,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) @@ -1100,8 +1110,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),