]> git.ipfire.org Git - people/ms/u-boot.git/commitdiff
dm: mmc: dwmmc: use the callback functions as static
authorJaehoon Chung <jh80.chung@samsung.com>
Tue, 28 Jun 2016 06:52:21 +0000 (15:52 +0900)
committerSimon Glass <sjg@chromium.org>
Wed, 27 Jul 2016 20:14:37 +0000 (14:14 -0600)
There are no places to call these functions.
It should be used the callback function.
Then it can be used as static functions.

Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
drivers/mmc/dw_mmc.c
include/dwmmc.h

index 2cf7bae79232dac03f45ca30e293097179537870..fe2147a226e3c8f946a43c908adbbc306bb17ce9 100644 (file)
@@ -182,7 +182,7 @@ static int dwmci_set_transfer_mode(struct dwmci_host *host,
 }
 
 #ifdef CONFIG_DM_MMC_OPS
-int dwmci_send_cmd(struct udevice *dev, struct mmc_cmd *cmd,
+static int dwmci_send_cmd(struct udevice *dev, struct mmc_cmd *cmd,
                   struct mmc_data *data)
 {
        struct mmc *mmc = mmc_get_mmc_dev(dev);
@@ -381,7 +381,7 @@ static int dwmci_setup_bus(struct dwmci_host *host, u32 freq)
 }
 
 #ifdef CONFIG_DM_MMC_OPS
-int dwmci_set_ios(struct udevice *dev)
+static int dwmci_set_ios(struct udevice *dev)
 {
        struct mmc *mmc = mmc_get_mmc_dev(dev);
 #else
index 164d1dc69049dd7de74c338bcb78b72b54abfc4f..d18ec8463b672ef08bd1c0807c158d2d6d838980 100644 (file)
@@ -295,9 +295,6 @@ int add_dwmci(struct dwmci_host *host, u32 max_clk, u32 min_clk);
 
 #ifdef CONFIG_DM_MMC_OPS
 /* Export the operations to drivers */
-int dwmci_send_cmd(struct udevice *dev, struct mmc_cmd *cmd,
-                  struct mmc_data *data);
-int dwmci_set_ios(struct udevice *dev);
 int dwmci_probe(struct udevice *dev);
 extern const struct dm_mmc_ops dm_dwmci_ops;
 #endif