]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
mmc: sdhci: remove the unused argument for sdhci_setup_cfg
authorJaehoon Chung <jh80.chung@samsung.com>
Tue, 26 Jul 2016 10:06:23 +0000 (19:06 +0900)
committerJaehoon Chung <jh80.chung@samsung.com>
Fri, 5 Aug 2016 02:21:25 +0000 (11:21 +0900)
buswidth isn't used anywhere in sdhci_setup_cfg.

Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Reviewed-by: Minkyu Kang <mk7.kang@samsung.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
drivers/mmc/msm_sdhci.c
drivers/mmc/sdhci.c
drivers/mmc/zynq_sdhci.c
include/sdhci.h

index 70a8d96eeef33d6c59d8723bef69fdd903256f72..e90a044235df5caa805773183900f6b7f19471ae 100644 (file)
@@ -144,8 +144,8 @@ static int msm_sdc_probe(struct udevice *dev)
        host->version = sdhci_readw(host, SDHCI_HOST_VERSION);
 
        caps = sdhci_readl(host, SDHCI_CAPABILITIES);
-       ret = sdhci_setup_cfg(&plat->cfg, dev->name, host->bus_width,
-                             caps, 0, 0, host->version, host->quirks, 0);
+       ret = sdhci_setup_cfg(&plat->cfg, dev->name, caps,
+                       0, 0, host->version, host->quirks, 0);
        host->mmc = &plat->mmc;
        if (ret)
                return ret;
index 4112223f24ab9cd2d7a76d0850327d66169296b6..c275314f51bdabf9dde37e22fc9b12775fd6a98a 100644 (file)
@@ -511,7 +511,7 @@ static const struct mmc_ops sdhci_ops = {
 };
 #endif
 
-int sdhci_setup_cfg(struct mmc_config *cfg, const char *name, int buswidth,
+int sdhci_setup_cfg(struct mmc_config *cfg, const char *name,
                    uint caps, u32 max_clk, u32 min_clk, uint version,
                    uint quirks, uint host_caps)
 {
@@ -582,7 +582,7 @@ int add_sdhci(struct sdhci_host *host, u32 max_clk, u32 min_clk)
        }
 #endif
 
-       if (sdhci_setup_cfg(&host->cfg, host->name, host->bus_width, caps,
+       if (sdhci_setup_cfg(&host->cfg, host->name, caps,
                            max_clk, min_clk, SDHCI_GET_VERSION(host),
                            host->quirks, host->host_caps)) {
                printf("%s: Hardware doesn't specify base clock frequency\n",
index bcd154a70745e6f2b43ea4a524b23fa181167a10..69d6151ae013e9aa4babb7b0967ca48346820c40 100644 (file)
@@ -40,7 +40,7 @@ static int arasan_sdhci_probe(struct udevice *dev)
        host->version = sdhci_readw(host, SDHCI_HOST_VERSION);
 
        caps = sdhci_readl(host, SDHCI_CAPABILITIES);
-       ret = sdhci_setup_cfg(&plat->cfg, dev->name, host->bus_width,
+       ret = sdhci_setup_cfg(&plat->cfg, dev->name,
                              caps, CONFIG_ZYNQ_SDHCI_MAX_FREQ,
                              CONFIG_ZYNQ_SDHCI_MIN_FREQ, host->version,
                              host->quirks, 0);
index c4d3b552d19dd8f30b2f0e757fe29a3fcae55461..693ecc144ba029c6494109f984f50876dfaa406a 100644 (file)
@@ -368,7 +368,6 @@ static inline u8 sdhci_readb(struct sdhci_host *host, int reg)
  *
  * @cfg:       Configuration structure to fill in (generally &plat->mmc)
  * @name:      Device name (normally dev->name)
- * @buswidth:  Bus width (in bits, such as 4 or 8)
  * @caps:      Host capabilities (MMC_MODE_...)
  * @max_clk:   Maximum supported clock speed in HZ (0 for default)
  * @min_clk:   Minimum supported clock speed in HZ (0 for default)
@@ -377,7 +376,7 @@ static inline u8 sdhci_readb(struct sdhci_host *host, int reg)
  * @quirks:    Quick flags (SDHCI_QUIRK_...)
  * @host_caps: Additional host capabilities (0 if none)
  */
-int sdhci_setup_cfg(struct mmc_config *cfg, const char *name, int buswidth,
+int sdhci_setup_cfg(struct mmc_config *cfg, const char *name,
                    uint caps, u32 max_clk, u32 min_clk, uint version,
                    uint quirks, uint host_caps);