aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/platform_data
diff options
context:
space:
mode:
authorAndreas Fenkart <afenkart@gmail.com>2014-11-08 09:33:16 -0500
committerUlf Hansson <ulf.hansson@linaro.org>2014-11-26 08:30:56 -0500
commitb5cd43f062717b6c92f93bc0c593764e144ea331 (patch)
tree0eac8d801aa05c2420657c26066531de8cb0cf26 /include/linux/platform_data
parent1e363e3b47bd9a0bddf1bfba8751240e0ecb3948 (diff)
mmc: omap_hsmmc: Remove unnecessary callbacks from platform data
These callbacks are set during driver probe and not from the platform init, -- evtl. they had been for oamp 1/2 -- for omap3 they are local functions of the driver. These indirection could be dropped altogether in favor of regular function calls TODO Acked-by: Tony Lindgren <tony@atomide.com> Signed-off-by: Andreas Fenkart <afenkart@gmail.com> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'include/linux/platform_data')
-rw-r--r--include/linux/platform_data/hsmmc-omap.h18
1 files changed, 0 insertions, 18 deletions
diff --git a/include/linux/platform_data/hsmmc-omap.h b/include/linux/platform_data/hsmmc-omap.h
index 26912143adc0..68ffec14b56a 100644
--- a/include/linux/platform_data/hsmmc-omap.h
+++ b/include/linux/platform_data/hsmmc-omap.h
@@ -45,10 +45,6 @@ struct omap_hsmmc_platform_data {
45 * maximum frequency on the MMC bus */ 45 * maximum frequency on the MMC bus */
46 unsigned int max_freq; 46 unsigned int max_freq;
47 47
48 /* To handle board related suspend/resume functionality for MMC */
49 int (*suspend)(struct device *dev, int slot);
50 int (*resume)(struct device *dev, int slot);
51
52 /* Integrating attributes from the omap_hwmod layer */ 48 /* Integrating attributes from the omap_hwmod layer */
53 u8 controller_flags; 49 u8 controller_flags;
54 50
@@ -85,7 +81,6 @@ struct omap_hsmmc_platform_data {
85 81
86 int (*set_power)(struct device *dev, int slot, 82 int (*set_power)(struct device *dev, int slot,
87 int power_on, int vdd); 83 int power_on, int vdd);
88 int (*get_ro)(struct device *dev, int slot);
89 void (*remux)(struct device *dev, int slot, int power_on); 84 void (*remux)(struct device *dev, int slot, int power_on);
90 /* Call back before enabling / disabling regulators */ 85 /* Call back before enabling / disabling regulators */
91 void (*before_set_reg)(struct device *dev, int slot, 86 void (*before_set_reg)(struct device *dev, int slot,
@@ -96,19 +91,6 @@ struct omap_hsmmc_platform_data {
96 /* if we have special card, init it using this callback */ 91 /* if we have special card, init it using this callback */
97 void (*init_card)(struct mmc_card *card); 92 void (*init_card)(struct mmc_card *card);
98 93
99 /* return MMC cover switch state, can be NULL if not supported.
100 *
101 * possible return values:
102 * 0 - closed
103 * 1 - open
104 */
105 int (*get_cover_state)(struct device *dev, int slot);
106
107 const char *name; 94 const char *name;
108 u32 ocr_mask; 95 u32 ocr_mask;
109
110 /* Card detection IRQs */
111 int card_detect_irq;
112
113 int (*card_detect)(struct device *dev, int slot);
114}; 96};