All of lore.kernel.org
 help / color / mirror / Atom feed
From: Banajit Goswami <banajit.g@samsung.com>
To: linux-arm-kernel@lists.infradead.org
Cc: linux-samsung-soc@vger.kernel.org, kgene.kim@samsung.com,
	ben-linux@fluff.org
Subject: [PATCH 1/7] ARM: SAMSUNG: Use generic s3c_set_platdata for TS
Date: Tue, 19 Jul 2011 17:35:00 +0530	[thread overview]
Message-ID: <1311077106-28351-2-git-send-email-banajit.g@samsung.com> (raw)
In-Reply-To: <1311077106-28351-1-git-send-email-banajit.g@samsung.com>

Call the generic s3c_set_platdata to set TS platform data

Signed-off-by: Banajit Goswami <banajit.g@samsung.com>
---
 arch/arm/plat-samsung/dev-ts.c |   14 ++------------
 1 files changed, 2 insertions(+), 12 deletions(-)

diff --git a/arch/arm/plat-samsung/dev-ts.c b/arch/arm/plat-samsung/dev-ts.c
index 3e4bd81..82543f0 100644
--- a/arch/arm/plat-samsung/dev-ts.c
+++ b/arch/arm/plat-samsung/dev-ts.c
@@ -45,16 +45,6 @@ struct platform_device s3c_device_ts = {
 
 void __init s3c24xx_ts_set_platdata(struct s3c2410_ts_mach_info *pd)
 {
-	struct s3c2410_ts_mach_info *npd;
-
-	if (!pd) {
-		printk(KERN_ERR "%s: no platform data\n", __func__);
-		return;
-	}
-
-	npd = kmemdup(pd, sizeof(struct s3c2410_ts_mach_info), GFP_KERNEL);
-	if (!npd)
-		printk(KERN_ERR "%s: no memory for platform data\n", __func__);
-
-	s3c_device_ts.dev.platform_data = npd;
+	s3c_set_platdata(pd, sizeof(struct s3c2410_ts_mach_info),
+			 &s3c_device_ts);
 }
-- 
1.7.2.3

WARNING: multiple messages have this Message-ID (diff)
From: banajit.g@samsung.com (Banajit Goswami)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 1/7] ARM: SAMSUNG: Use generic s3c_set_platdata for TS
Date: Tue, 19 Jul 2011 17:35:00 +0530	[thread overview]
Message-ID: <1311077106-28351-2-git-send-email-banajit.g@samsung.com> (raw)
In-Reply-To: <1311077106-28351-1-git-send-email-banajit.g@samsung.com>

Call the generic s3c_set_platdata to set TS platform data

Signed-off-by: Banajit Goswami <banajit.g@samsung.com>
---
 arch/arm/plat-samsung/dev-ts.c |   14 ++------------
 1 files changed, 2 insertions(+), 12 deletions(-)

diff --git a/arch/arm/plat-samsung/dev-ts.c b/arch/arm/plat-samsung/dev-ts.c
index 3e4bd81..82543f0 100644
--- a/arch/arm/plat-samsung/dev-ts.c
+++ b/arch/arm/plat-samsung/dev-ts.c
@@ -45,16 +45,6 @@ struct platform_device s3c_device_ts = {
 
 void __init s3c24xx_ts_set_platdata(struct s3c2410_ts_mach_info *pd)
 {
-	struct s3c2410_ts_mach_info *npd;
-
-	if (!pd) {
-		printk(KERN_ERR "%s: no platform data\n", __func__);
-		return;
-	}
-
-	npd = kmemdup(pd, sizeof(struct s3c2410_ts_mach_info), GFP_KERNEL);
-	if (!npd)
-		printk(KERN_ERR "%s: no memory for platform data\n", __func__);
-
-	s3c_device_ts.dev.platform_data = npd;
+	s3c_set_platdata(pd, sizeof(struct s3c2410_ts_mach_info),
+			 &s3c_device_ts);
 }
-- 
1.7.2.3

  reply	other threads:[~2011-07-19 12:04 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-19 12:04 [PATCH 0/7] ARM: SAMSUNG: Code cleanup for various devices Banajit Goswami
2011-07-19 12:04 ` Banajit Goswami
2011-07-19 12:05 ` Banajit Goswami [this message]
2011-07-19 12:05   ` [PATCH 1/7] ARM: SAMSUNG: Use generic s3c_set_platdata for TS Banajit Goswami
2011-07-19 12:05 ` [PATCH 2/7] ARM: SAMSUNG: Use generic s3c_set_platdata for FB Banajit Goswami
2011-07-19 12:05   ` Banajit Goswami
2011-07-19 12:05 ` [PATCH 3/7] ARM: SAMSUNG: Use generic s3c_set_platdata for HWMON Banajit Goswami
2011-07-19 12:05   ` Banajit Goswami
2011-07-19 12:05 ` [PATCH 4/7] ARM: SAMSUNG: Use generic s3c_set_platdata for USB OHCI Banajit Goswami
2011-07-19 12:05   ` Banajit Goswami
2011-07-19 12:05 ` [PATCH 5/7] ARM: SAMSUNG: Use generic s3c_set_platdata for NAND Banajit Goswami
2011-07-19 12:05   ` Banajit Goswami
2011-07-19 12:05 ` [PATCH 6/7] ARM: S3C64XX: Use generic s3c_set_platdata for OneNAND Banajit Goswami
2011-07-19 12:05   ` Banajit Goswami
2011-07-19 12:05 ` [PATCH 7/7] ARM: S3C24XX: Use generic s3c_set_platdata for devices Banajit Goswami
2011-07-19 12:05   ` Banajit Goswami
2011-07-20 17:07 ` [PATCH 0/7] ARM: SAMSUNG: Code cleanup for various devices Kukjin Kim
2011-07-20 17:07   ` Kukjin Kim

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=1311077106-28351-2-git-send-email-banajit.g@samsung.com \
    --to=banajit.g@samsung.com \
    --cc=ben-linux@fluff.org \
    --cc=kgene.kim@samsung.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-samsung-soc@vger.kernel.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.