]> git.openfabrics.org - ~emulex/infiniband.git/commitdiff
mmc: omap_hsmmc: remove unused fields in platform_data
authorAndreas Fenkart <afenkart@gmail.com>
Sat, 8 Nov 2014 14:33:10 +0000 (15:33 +0100)
committerUlf Hansson <ulf.hansson@linaro.org>
Wed, 26 Nov 2014 13:30:54 +0000 (14:30 +0100)
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>
arch/arm/mach-omap2/hsmmc.c
arch/arm/mach-omap2/hsmmc.h
include/linux/platform_data/hsmmc-omap.h

index 9edd7596d1e71b476076e7ec0e8c61019e91997f..75b75b96040fe832a2313787850e879963440196 100644 (file)
@@ -263,9 +263,7 @@ static int __init omap_hsmmc_pdata_init(struct omap2_hsmmc_info *c,
        mmc->slots[0].name = hc_name;
        mmc->nr_slots = 1;
        mmc->slots[0].caps = c->caps;
-       mmc->slots[0].pm_caps = c->pm_caps;
        mmc->slots[0].internal_clock = !c->ext_clock;
-       mmc->max_freq = c->max_freq;
        mmc->reg_offset = 0;
        mmc->get_context_loss_count = hsmmc_get_context_loss;
 
@@ -281,18 +279,6 @@ static int __init omap_hsmmc_pdata_init(struct omap2_hsmmc_info *c,
        if (c->nonremovable)
                mmc->slots[0].nonremovable = 1;
 
-       if (c->power_saving)
-               mmc->slots[0].power_saving = 1;
-
-       if (c->no_off)
-               mmc->slots[0].no_off = 1;
-
-       if (c->no_off_init)
-               mmc->slots[0].no_regulator_off_init = c->no_off_init;
-
-       if (c->vcc_aux_disable_is_sleep)
-               mmc->slots[0].vcc_aux_disable_is_sleep = 1;
-
        /*
         * NOTE:  MMC slots should have a Vcc regulator set up.
         * This may be from a TWL4030-family chip, another
index 7f2e790e0929a9a23a13015c32cc119b81593c2d..bdc8870dde7eec4fe3029e09660a24da841fff13 100644 (file)
@@ -12,23 +12,17 @@ struct omap2_hsmmc_info {
        u8      mmc;            /* controller 1/2/3 */
        u32     caps;           /* 4/8 wires and any additional host
                                 * capabilities OR'd (ref. linux/mmc/host.h) */
-       u32     pm_caps;        /* PM capabilities */
        bool    transceiver;    /* MMC-2 option */
        bool    ext_clock;      /* use external pin for input clock */
        bool    cover_only;     /* No card detect - just cover switch */
        bool    nonremovable;   /* Nonremovable e.g. eMMC */
        bool    power_saving;   /* Try to sleep or power off when possible */
-       bool    no_off;         /* power_saving and power is not to go off */
-       bool    no_off_init;    /* no power off when not in MMC sleep state */
-       bool    vcc_aux_disable_is_sleep; /* Regulator off remapped to sleep */
        bool    deferred;       /* mmc needs a deferred probe */
        int     gpio_cd;        /* or -EINVAL */
        int     gpio_wp;        /* or -EINVAL */
        char    *name;          /* or NULL for default */
        struct platform_device *pdev;   /* mmc controller instance */
        int     ocr_mask;       /* temporary HACK */
-       int     max_freq;       /* maximum clock, if constrained by external
-                                * circuitry, or 0 for default */
        /* Remux (pad configuration) when powering on/off */
        void (*remux)(struct device *dev, int slot, int power_on);
        /* init some special card */
index 7dd42e54a5876549fc56c5587860ae59ec6f1d52..11d7ed99603fa6f5bff78017e9489b18f81eab3f 100644 (file)
@@ -73,16 +73,9 @@ struct omap_hsmmc_platform_data {
                 * 4/8 wires and any additional host capabilities
                 * need to OR'd all capabilities (ref. linux/mmc/host.h)
                 */
-               u8  wires;      /* Used for the MMC driver on omap1 and 2420 */
                u32 caps;       /* Used for the MMC driver on 2430 and later */
                u32 pm_caps;    /* PM capabilities of the mmc */
 
-               /*
-                * nomux means "standard" muxing is wrong on this board, and
-                * that board-specific code handled it before common init logic.
-                */
-               unsigned nomux:1;
-
                /* switch pin can be for card detect (default) or card cover */
                unsigned cover:1;
 
@@ -92,18 +85,9 @@ struct omap_hsmmc_platform_data {
                /* nonremovable e.g. eMMC */
                unsigned nonremovable:1;
 
-               /* Try to sleep or power off when possible */
-               unsigned power_saving:1;
-
-               /* If using power_saving and the MMC power is not to go off */
-               unsigned no_off:1;
-
                /* eMMC does not handle power off when not in sleep state */
                unsigned no_regulator_off_init:1;
 
-               /* Regulator off remapped to sleep */
-               unsigned vcc_aux_disable_is_sleep:1;
-
                /* we can put the features above into this variable */
 #define HSMMC_HAS_PBIAS                (1 << 0)
 #define HSMMC_HAS_UPDATED_RESET        (1 << 1)
@@ -142,8 +126,5 @@ struct omap_hsmmc_platform_data {
                int card_detect_irq;
 
                int (*card_detect)(struct device *dev, int slot);
-
-               unsigned int ban_openended:1;
-
        } slots[OMAP_HSMMC_MAX_SLOTS];
 };