]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - arch/arm/mach-s3c2410/mach-h1940.c
ARM: S3C24XX: Add mci platform data set call s3c24xx_mci_set_platdata().
[net-next-2.6.git] / arch / arm / mach-s3c2410 / mach-h1940.c
index 3f9217d0abf7dcad74da9917ae30ddfe6b544971..fbedd076094177ec04901462536b9bf70e99fb0d 100644 (file)
@@ -196,7 +196,7 @@ static struct platform_device h1940_device_bluetooth = {
        .id               = -1,
 };
 
-static struct s3c24xx_mci_pdata h1940_mmc_cfg = {
+static struct s3c24xx_mci_pdata h1940_mmc_cfg __initdata = {
        .gpio_detect   = S3C2410_GPF(5),
        .gpio_wprotect = S3C2410_GPH(8),
        .set_power     = NULL,
@@ -311,12 +311,11 @@ static void __init h1940_init(void)
        u32 tmp;
 
        s3c24xx_fb_set_platdata(&h1940_fb_info);
+       s3c24xx_mci_set_platdata(&h1940_mmc_cfg);
        s3c24xx_udc_set_platdata(&h1940_udc_cfg);
        s3c24xx_ts_set_platdata(&h1940_ts_cfg);
        s3c_i2c0_set_platdata(NULL);
 
-       s3c_device_sdi.dev.platform_data = &h1940_mmc_cfg;
-
        /* Turn off suspend on both USB ports, and switch the
         * selectable USB port to USB device mode. */