aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/plat-samsung/dev-hsmmc.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/plat-samsung/dev-hsmmc.c')
-rw-r--r--arch/arm/plat-samsung/dev-hsmmc.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/arm/plat-samsung/dev-hsmmc.c b/arch/arm/plat-samsung/dev-hsmmc.c
index 9d2be0941410..5b8aacb5cbc6 100644
--- a/arch/arm/plat-samsung/dev-hsmmc.c
+++ b/arch/arm/plat-samsung/dev-hsmmc.c
@@ -59,17 +59,18 @@ void s3c_sdhci0_set_platdata(struct s3c_sdhci_platdata *pd)
59{ 59{
60 struct s3c_sdhci_platdata *set = &s3c_hsmmc0_def_platdata; 60 struct s3c_sdhci_platdata *set = &s3c_hsmmc0_def_platdata;
61 61
62 set->max_width = pd->max_width;
63 set->cd_type = pd->cd_type; 62 set->cd_type = pd->cd_type;
64 set->ext_cd_init = pd->ext_cd_init; 63 set->ext_cd_init = pd->ext_cd_init;
65 set->ext_cd_cleanup = pd->ext_cd_cleanup; 64 set->ext_cd_cleanup = pd->ext_cd_cleanup;
66 set->ext_cd_gpio = pd->ext_cd_gpio; 65 set->ext_cd_gpio = pd->ext_cd_gpio;
67 set->ext_cd_gpio_invert = pd->ext_cd_gpio_invert; 66 set->ext_cd_gpio_invert = pd->ext_cd_gpio_invert;
68 67
68 if (pd->max_width)
69 set->max_width = pd->max_width;
69 if (pd->cfg_gpio) 70 if (pd->cfg_gpio)
70 set->cfg_gpio = pd->cfg_gpio; 71 set->cfg_gpio = pd->cfg_gpio;
71 if (pd->cfg_card) 72 if (pd->cfg_card)
72 set->cfg_card = pd->cfg_card; 73 set->cfg_card = pd->cfg_card;
73 if (pd->host_caps) 74 if (pd->host_caps)
74 set->host_caps = pd->host_caps; 75 set->host_caps |= pd->host_caps;
75} 76}