mmc: omap_hsmmc: remove unused get_context_loss_count callback
authorAndreas Fenkart <afenkart@gmail.com>
Sat, 8 Nov 2014 14:33:13 +0000 (15:33 +0100)
committerUlf Hansson <ulf.hansson@linaro.org>
Wed, 26 Nov 2014 13:30:55 +0000 (14:30 +0100)
trigger of this callback has been removed in 0a82e06e6183

Acked-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Andreas Fenkart <afenkart@gmail.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
arch/arm/mach-omap2/hsmmc.c
include/linux/platform_data/hsmmc-omap.h

index 75b75b96040fe832a2313787850e879963440196..c65efc3cf81f64d12d9172391f5da7813b17f2a0 100644 (file)
@@ -33,17 +33,6 @@ static u16 control_devconf1_offset;
 
 #define HSMMC_NAME_LEN 9
 
-#if defined(CONFIG_ARCH_OMAP3) && defined(CONFIG_PM)
-
-static int hsmmc_get_context_loss(struct device *dev)
-{
-       return omap_pm_get_dev_context_loss_count(dev);
-}
-
-#else
-#define hsmmc_get_context_loss NULL
-#endif
-
 static void omap_hsmmc1_before_set_reg(struct device *dev, int slot,
                                  int power_on, int vdd)
 {
@@ -265,7 +254,6 @@ static int __init omap_hsmmc_pdata_init(struct omap2_hsmmc_info *c,
        mmc->slots[0].caps = c->caps;
        mmc->slots[0].internal_clock = !c->ext_clock;
        mmc->reg_offset = 0;
-       mmc->get_context_loss_count = hsmmc_get_context_loss;
 
        mmc->slots[0].switch_pin = c->gpio_cd;
        mmc->slots[0].gpio_wp = c->gpio_wp;
index 7e70e15154e4d9f45c80b3ac3e0e28b43697753a..35d494f7d62f4fef7238301482db8e7ded85620f 100644 (file)
@@ -51,9 +51,6 @@ struct omap_hsmmc_platform_data {
        int (*suspend)(struct device *dev, int slot);
        int (*resume)(struct device *dev, int slot);
 
-       /* Return context loss count due to PM states changing */
-       int (*get_context_loss_count)(struct device *dev);
-
        /* Integrating attributes from the omap_hwmod layer */
        u8 controller_flags;