diff options
author | Banajit Goswami <banajit.g@samsung.com> | 2011-08-18 07:32:01 -0400 |
---|---|---|
committer | Kukjin Kim <kgene.kim@samsung.com> | 2011-09-16 02:43:15 -0400 |
commit | 5e8e0a109e3c1b08c1407c615684bb9981aca28f (patch) | |
tree | e3e685d8bdd9ddcaafd23ade8fe8266256e3150d /arch/arm/plat-samsung/dev-hsmmc2.c | |
parent | 3e461977d1aff9b4d1785815f4eb2098657a0500 (diff) |
ARM: SAMSUNG: Consolidate common function to set SDHCI plat data
Moves similar functions to set SDHCI platform data for all Samsung
boards to a common location, thereby saves a few lines.
Signed-off-by: Banajit Goswami <banajit.g@samsung.com>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
Diffstat (limited to 'arch/arm/plat-samsung/dev-hsmmc2.c')
-rw-r--r-- | arch/arm/plat-samsung/dev-hsmmc2.c | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/arch/arm/plat-samsung/dev-hsmmc2.c b/arch/arm/plat-samsung/dev-hsmmc2.c index f60aedba417c..9cede9615e48 100644 --- a/arch/arm/plat-samsung/dev-hsmmc2.c +++ b/arch/arm/plat-samsung/dev-hsmmc2.c | |||
@@ -59,22 +59,5 @@ struct platform_device s3c_device_hsmmc2 = { | |||
59 | 59 | ||
60 | void s3c_sdhci2_set_platdata(struct s3c_sdhci_platdata *pd) | 60 | void s3c_sdhci2_set_platdata(struct s3c_sdhci_platdata *pd) |
61 | { | 61 | { |
62 | struct s3c_sdhci_platdata *set = &s3c_hsmmc2_def_platdata; | 62 | s3c_sdhci_set_platdata(pd, &s3c_hsmmc2_def_platdata); |
63 | |||
64 | set->cd_type = pd->cd_type; | ||
65 | set->ext_cd_init = pd->ext_cd_init; | ||
66 | set->ext_cd_cleanup = pd->ext_cd_cleanup; | ||
67 | set->ext_cd_gpio = pd->ext_cd_gpio; | ||
68 | set->ext_cd_gpio_invert = pd->ext_cd_gpio_invert; | ||
69 | |||
70 | if (pd->max_width) | ||
71 | set->max_width = pd->max_width; | ||
72 | if (pd->cfg_gpio) | ||
73 | set->cfg_gpio = pd->cfg_gpio; | ||
74 | if (pd->cfg_card) | ||
75 | set->cfg_card = pd->cfg_card; | ||
76 | if (pd->host_caps) | ||
77 | set->host_caps |= pd->host_caps; | ||
78 | if (pd->clk_type) | ||
79 | set->clk_type = pd->clk_type; | ||
80 | } | 63 | } |