diff options
author | Andreas Fenkart <afenkart@gmail.com> | 2014-11-08 09:33:10 -0500 |
---|---|---|
committer | Ulf Hansson <ulf.hansson@linaro.org> | 2014-11-26 08:30:54 -0500 |
commit | a74fecdf795e1d219fcdb6470b6a0709ff7e3e76 (patch) | |
tree | e552cd770fceffcf510530598784a613d1aaee8e | |
parent | 551434389074791da30b7afbf44c4bbe9b8b0116 (diff) |
mmc: omap_hsmmc: remove unused fields in platform_data
platform data is built from omap2_hsmmc_info, remove all fields that
are never set in omap_hsmmc_info, hence never copied to platform data.
Note that the omap_hsmmc driver is not affected by this patch those
fields were completely unused.
Acked-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Andreas Fenkart <afenkart@gmail.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
-rw-r--r-- | arch/arm/mach-omap2/hsmmc.c | 14 | ||||
-rw-r--r-- | arch/arm/mach-omap2/hsmmc.h | 6 | ||||
-rw-r--r-- | include/linux/platform_data/hsmmc-omap.h | 19 |
3 files changed, 0 insertions, 39 deletions
diff --git a/arch/arm/mach-omap2/hsmmc.c b/arch/arm/mach-omap2/hsmmc.c index 9edd7596d1e7..75b75b96040f 100644 --- a/arch/arm/mach-omap2/hsmmc.c +++ b/arch/arm/mach-omap2/hsmmc.c | |||
@@ -263,9 +263,7 @@ static int __init omap_hsmmc_pdata_init(struct omap2_hsmmc_info *c, | |||
263 | mmc->slots[0].name = hc_name; | 263 | mmc->slots[0].name = hc_name; |
264 | mmc->nr_slots = 1; | 264 | mmc->nr_slots = 1; |
265 | mmc->slots[0].caps = c->caps; | 265 | mmc->slots[0].caps = c->caps; |
266 | mmc->slots[0].pm_caps = c->pm_caps; | ||
267 | mmc->slots[0].internal_clock = !c->ext_clock; | 266 | mmc->slots[0].internal_clock = !c->ext_clock; |
268 | mmc->max_freq = c->max_freq; | ||
269 | mmc->reg_offset = 0; | 267 | mmc->reg_offset = 0; |
270 | mmc->get_context_loss_count = hsmmc_get_context_loss; | 268 | mmc->get_context_loss_count = hsmmc_get_context_loss; |
271 | 269 | ||
@@ -281,18 +279,6 @@ static int __init omap_hsmmc_pdata_init(struct omap2_hsmmc_info *c, | |||
281 | if (c->nonremovable) | 279 | if (c->nonremovable) |
282 | mmc->slots[0].nonremovable = 1; | 280 | mmc->slots[0].nonremovable = 1; |
283 | 281 | ||
284 | if (c->power_saving) | ||
285 | mmc->slots[0].power_saving = 1; | ||
286 | |||
287 | if (c->no_off) | ||
288 | mmc->slots[0].no_off = 1; | ||
289 | |||
290 | if (c->no_off_init) | ||
291 | mmc->slots[0].no_regulator_off_init = c->no_off_init; | ||
292 | |||
293 | if (c->vcc_aux_disable_is_sleep) | ||
294 | mmc->slots[0].vcc_aux_disable_is_sleep = 1; | ||
295 | |||
296 | /* | 282 | /* |
297 | * NOTE: MMC slots should have a Vcc regulator set up. | 283 | * NOTE: MMC slots should have a Vcc regulator set up. |
298 | * This may be from a TWL4030-family chip, another | 284 | * This may be from a TWL4030-family chip, another |
diff --git a/arch/arm/mach-omap2/hsmmc.h b/arch/arm/mach-omap2/hsmmc.h index 7f2e790e0929..bdc8870dde7e 100644 --- a/arch/arm/mach-omap2/hsmmc.h +++ b/arch/arm/mach-omap2/hsmmc.h | |||
@@ -12,23 +12,17 @@ struct omap2_hsmmc_info { | |||
12 | u8 mmc; /* controller 1/2/3 */ | 12 | u8 mmc; /* controller 1/2/3 */ |
13 | u32 caps; /* 4/8 wires and any additional host | 13 | u32 caps; /* 4/8 wires and any additional host |
14 | * capabilities OR'd (ref. linux/mmc/host.h) */ | 14 | * capabilities OR'd (ref. linux/mmc/host.h) */ |
15 | u32 pm_caps; /* PM capabilities */ | ||
16 | bool transceiver; /* MMC-2 option */ | 15 | bool transceiver; /* MMC-2 option */ |
17 | bool ext_clock; /* use external pin for input clock */ | 16 | bool ext_clock; /* use external pin for input clock */ |
18 | bool cover_only; /* No card detect - just cover switch */ | 17 | bool cover_only; /* No card detect - just cover switch */ |
19 | bool nonremovable; /* Nonremovable e.g. eMMC */ | 18 | bool nonremovable; /* Nonremovable e.g. eMMC */ |
20 | bool power_saving; /* Try to sleep or power off when possible */ | 19 | bool power_saving; /* Try to sleep or power off when possible */ |
21 | bool no_off; /* power_saving and power is not to go off */ | ||
22 | bool no_off_init; /* no power off when not in MMC sleep state */ | ||
23 | bool vcc_aux_disable_is_sleep; /* Regulator off remapped to sleep */ | ||
24 | bool deferred; /* mmc needs a deferred probe */ | 20 | bool deferred; /* mmc needs a deferred probe */ |
25 | int gpio_cd; /* or -EINVAL */ | 21 | int gpio_cd; /* or -EINVAL */ |
26 | int gpio_wp; /* or -EINVAL */ | 22 | int gpio_wp; /* or -EINVAL */ |
27 | char *name; /* or NULL for default */ | 23 | char *name; /* or NULL for default */ |
28 | struct platform_device *pdev; /* mmc controller instance */ | 24 | struct platform_device *pdev; /* mmc controller instance */ |
29 | int ocr_mask; /* temporary HACK */ | 25 | int ocr_mask; /* temporary HACK */ |
30 | int max_freq; /* maximum clock, if constrained by external | ||
31 | * circuitry, or 0 for default */ | ||
32 | /* Remux (pad configuration) when powering on/off */ | 26 | /* Remux (pad configuration) when powering on/off */ |
33 | void (*remux)(struct device *dev, int slot, int power_on); | 27 | void (*remux)(struct device *dev, int slot, int power_on); |
34 | /* init some special card */ | 28 | /* init some special card */ |
diff --git a/include/linux/platform_data/hsmmc-omap.h b/include/linux/platform_data/hsmmc-omap.h index 7dd42e54a587..11d7ed99603f 100644 --- a/include/linux/platform_data/hsmmc-omap.h +++ b/include/linux/platform_data/hsmmc-omap.h | |||
@@ -73,16 +73,9 @@ struct omap_hsmmc_platform_data { | |||
73 | * 4/8 wires and any additional host capabilities | 73 | * 4/8 wires and any additional host capabilities |
74 | * need to OR'd all capabilities (ref. linux/mmc/host.h) | 74 | * need to OR'd all capabilities (ref. linux/mmc/host.h) |
75 | */ | 75 | */ |
76 | u8 wires; /* Used for the MMC driver on omap1 and 2420 */ | ||
77 | u32 caps; /* Used for the MMC driver on 2430 and later */ | 76 | u32 caps; /* Used for the MMC driver on 2430 and later */ |
78 | u32 pm_caps; /* PM capabilities of the mmc */ | 77 | u32 pm_caps; /* PM capabilities of the mmc */ |
79 | 78 | ||
80 | /* | ||
81 | * nomux means "standard" muxing is wrong on this board, and | ||
82 | * that board-specific code handled it before common init logic. | ||
83 | */ | ||
84 | unsigned nomux:1; | ||
85 | |||
86 | /* switch pin can be for card detect (default) or card cover */ | 79 | /* switch pin can be for card detect (default) or card cover */ |
87 | unsigned cover:1; | 80 | unsigned cover:1; |
88 | 81 | ||
@@ -92,18 +85,9 @@ struct omap_hsmmc_platform_data { | |||
92 | /* nonremovable e.g. eMMC */ | 85 | /* nonremovable e.g. eMMC */ |
93 | unsigned nonremovable:1; | 86 | unsigned nonremovable:1; |
94 | 87 | ||
95 | /* Try to sleep or power off when possible */ | ||
96 | unsigned power_saving:1; | ||
97 | |||
98 | /* If using power_saving and the MMC power is not to go off */ | ||
99 | unsigned no_off:1; | ||
100 | |||
101 | /* eMMC does not handle power off when not in sleep state */ | 88 | /* eMMC does not handle power off when not in sleep state */ |
102 | unsigned no_regulator_off_init:1; | 89 | unsigned no_regulator_off_init:1; |
103 | 90 | ||
104 | /* Regulator off remapped to sleep */ | ||
105 | unsigned vcc_aux_disable_is_sleep:1; | ||
106 | |||
107 | /* we can put the features above into this variable */ | 91 | /* we can put the features above into this variable */ |
108 | #define HSMMC_HAS_PBIAS (1 << 0) | 92 | #define HSMMC_HAS_PBIAS (1 << 0) |
109 | #define HSMMC_HAS_UPDATED_RESET (1 << 1) | 93 | #define HSMMC_HAS_UPDATED_RESET (1 << 1) |
@@ -142,8 +126,5 @@ struct omap_hsmmc_platform_data { | |||
142 | int card_detect_irq; | 126 | int card_detect_irq; |
143 | 127 | ||
144 | int (*card_detect)(struct device *dev, int slot); | 128 | int (*card_detect)(struct device *dev, int slot); |
145 | |||
146 | unsigned int ban_openended:1; | ||
147 | |||
148 | } slots[OMAP_HSMMC_MAX_SLOTS]; | 129 | } slots[OMAP_HSMMC_MAX_SLOTS]; |
149 | }; | 130 | }; |