aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/plat-s3c24xx/devs.c
diff options
context:
space:
mode:
authorBen Dooks <ben-linux@fluff.org>2010-01-18 02:24:22 -0500
committerBen Dooks <ben-linux@fluff.org>2010-01-19 03:21:38 -0500
commit22c810ab3e25d16e6f128384d107b933b6fd8fff (patch)
tree6cc4c9112b86512d4093dde3e17ab5ec9fdefa90 /arch/arm/plat-s3c24xx/devs.c
parent3cd2fff59fc924752611301f4ca7e8484f5744a5 (diff)
ARM: S3C24XX: Add mci platform data set call s3c24xx_mci_set_platdata().
Add a s3c24xx_mci_set_platdata() call for all the machine files that have platform data for the MCI driver. This brings the MCI device into line with the other devices with __initdata and a specific call to ensure the right structure type is being passed. Signed-off-by: Ben Dooks <ben-linux@fluff.org>
Diffstat (limited to 'arch/arm/plat-s3c24xx/devs.c')
-rw-r--r--arch/arm/plat-s3c24xx/devs.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/arch/arm/plat-s3c24xx/devs.c b/arch/arm/plat-s3c24xx/devs.c
index 38c358c14aa2..986d4e5408f5 100644
--- a/arch/arm/plat-s3c24xx/devs.c
+++ b/arch/arm/plat-s3c24xx/devs.c
@@ -32,6 +32,7 @@
32 32
33#include <plat/regs-serial.h> 33#include <plat/regs-serial.h>
34#include <plat/udc.h> 34#include <plat/udc.h>
35#include <plat/mci.h>
35 36
36#include <plat/devs.h> 37#include <plat/devs.h>
37#include <plat/cpu.h> 38#include <plat/cpu.h>
@@ -351,6 +352,18 @@ struct platform_device s3c_device_sdi = {
351 352
352EXPORT_SYMBOL(s3c_device_sdi); 353EXPORT_SYMBOL(s3c_device_sdi);
353 354
355void s3c24xx_mci_set_platdata(struct s3c24xx_mci_pdata *pdata)
356{
357 struct s3c24xx_mci_pdata *npd;
358
359 npd = kmemdup(pdata, sizeof(struct s3c24xx_mci_pdata), GFP_KERNEL);
360 if (!npd)
361 printk(KERN_ERR "%s: no memory to copy pdata", __func__);
362
363 s3c_device_sdi.dev.platform_data = npd;
364}
365
366
354/* SPI (0) */ 367/* SPI (0) */
355 368
356static struct resource s3c_spi0_resource[] = { 369static struct resource s3c_spi0_resource[] = {