devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Leela Krishna Amudala <l.krishna@samsung.com>
To: dri-devel@lists.freedesktop.org, devicetree-discuss@lists.ozlabs.org
Cc: Prathyush K <prathyush.k@samsung.com>,
	joshi@samsung.com, inki.dae@samsung.com,
	laurent.pinchart@ideasonboard.com, olofj@google.com
Subject: [PATCH V2 2/2] drm/exynos: Modifying exynos drm fimd to support exynos5
Date: Wed, 11 Jul 2012 14:14:47 +0530	[thread overview]
Message-ID: <1341996287-14666-3-git-send-email-l.krishna@samsung.com> (raw)
In-Reply-To: <1341996287-14666-1-git-send-email-l.krishna@samsung.com>

From: Prathyush K <prathyush.k@samsung.com>

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 <prathyush.k@samsung.com>
---
 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),
-- 
1.7.0.4

  parent reply	other threads:[~2012-07-11  8:44 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-11  8:44 [PATCH V2 0/2] video: drm: Add Device tree support to DRM-FIMD Leela Krishna Amudala
2012-07-11  8:44 ` [PATCH V2 1/2] video: drm: exynos: Add device tree support Leela Krishna Amudala
2012-07-11  8:44 ` Leela Krishna Amudala [this message]
2012-07-17  4:19 ` [PATCH V2 0/2] video: drm: Add Device tree support to DRM-FIMD InKi Dae
     [not found]   ` <CAAQKjZN0tE=Kfeco434JO3ynkap5d-W6et6VoZjD=eR3USGHGw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2012-07-17  4:28     ` Leela Krishna Amudala
2012-07-20  7:00 ` Joonyoung Shim

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1341996287-14666-3-git-send-email-l.krishna@samsung.com \
    --to=l.krishna@samsung.com \
    --cc=devicetree-discuss@lists.ozlabs.org \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=inki.dae@samsung.com \
    --cc=joshi@samsung.com \
    --cc=laurent.pinchart@ideasonboard.com \
    --cc=olofj@google.com \
    --cc=prathyush.k@samsung.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).