All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jaehoon Chung <jh80.chung@samsung.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 1/5] mmc: exynos_dw_mmc: remove the unused function
Date: Wed, 29 Jun 2016 19:46:14 +0900	[thread overview]
Message-ID: <1467197178-24783-2-git-send-email-jh80.chung@samsung.com> (raw)
In-Reply-To: <1467197178-24783-1-git-send-email-jh80.chung@samsung.com>

This function have maintained for supporting Non-FDT.
Now, Almost all SoC are changed to fdt style.
So there are no that this function is called anywhere.

Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
---
 arch/arm/mach-exynos/include/mach/dwmmc.h |  1 -
 drivers/mmc/exynos_dw_mmc.c               | 36 -------------------------------
 2 files changed, 37 deletions(-)

diff --git a/arch/arm/mach-exynos/include/mach/dwmmc.h b/arch/arm/mach-exynos/include/mach/dwmmc.h
index bd997ad..ab8361f 100644
--- a/arch/arm/mach-exynos/include/mach/dwmmc.h
+++ b/arch/arm/mach-exynos/include/mach/dwmmc.h
@@ -28,4 +28,3 @@
 #define DWMCI_DIVRATIO_MASK		0x7
 
 int exynos_dwmmc_init(const void *blob);
-int exynos_dwmci_add_port(int index, u32 regbase, int bus_width, u32 clksel);
diff --git a/drivers/mmc/exynos_dw_mmc.c b/drivers/mmc/exynos_dw_mmc.c
index 863bbb3..2b9b3aa 100644
--- a/drivers/mmc/exynos_dw_mmc.c
+++ b/drivers/mmc/exynos_dw_mmc.c
@@ -122,42 +122,6 @@ static int exynos_dwmci_core_init(struct dwmci_host *host, int index)
 	return 0;
 }
 
-/*
- * This function adds the mmc channel to be registered with mmc core.
- * index -	mmc channel number.
- * regbase -	register base address of mmc channel specified in 'index'.
- * bus_width -	operating bus width of mmc channel specified in 'index'.
- * clksel -	value to be written into CLKSEL register in case of FDT.
- *		NULL in case od non-FDT.
- */
-int exynos_dwmci_add_port(int index, u32 regbase, int bus_width, u32 clksel)
-{
-	struct dwmci_host *host = NULL;
-	struct dwmci_exynos_priv_data *priv;
-
-	host = malloc(sizeof(struct dwmci_host));
-	if (!host) {
-		error("dwmci_host malloc fail!\n");
-		return -ENOMEM;
-	}
-
-	priv = malloc(sizeof(struct dwmci_exynos_priv_data));
-	if (!priv) {
-		error("dwmci_exynos_priv_data malloc fail!\n");
-		return -ENOMEM;
-	}
-
-	host->ioaddr = (void *)regbase;
-	host->buswidth = bus_width;
-
-	if (clksel)
-		priv->sdr_timing = clksel;
-
-	host->priv = priv;
-
-	return exynos_dwmci_core_init(host, index);
-}
-
 #if CONFIG_IS_ENABLED(OF_CONTROL)
 static struct dwmci_host dwmci_host[DWMMC_MAX_CH_NUM];
 
-- 
1.9.1

  reply	other threads:[~2016-06-29 10:46 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CGME20160629104621epcas1p24746778f04ac171c55b61d619fd62a04@epcas1p2.samsung.com>
2016-06-29 10:46 ` [U-Boot] [PATCH 0/5] mmc: exynos_dw_mmc: clean the unnecessary codes Jaehoon Chung
2016-06-29 10:46   ` Jaehoon Chung [this message]
2016-06-29 23:05     ` [U-Boot] [PATCH 1/5] mmc: exynos_dw_mmc: remove the unused function Simon Glass
2016-06-29 10:46   ` [U-Boot] [PATCH 2/5] mmc: exynos_dw_mmc: remove #ifdef for OF_CONTROL Jaehoon Chung
2016-06-29 23:05     ` Simon Glass
2016-06-29 10:46   ` [U-Boot] [PATCH 3/5] mmc: exynos_dw_mmc: add the error control for checking index Jaehoon Chung
2016-06-29 23:05     ` Simon Glass
2016-06-29 10:46   ` [U-Boot] [PATCH 4/5] mmc: exynos_dw_mmc: clean the unused and unnecessary codes Jaehoon Chung
2016-06-29 23:05     ` Simon Glass
2016-06-29 10:46   ` [U-Boot] [PATCH 5/5] mmc: exynos_dw_mmc: use the 4bit bus-width by default Jaehoon Chung
2016-06-29 23:05     ` Simon Glass
2016-07-12 10:51   ` [U-Boot] [PATCH 0/5] mmc: exynos_dw_mmc: clean the unnecessary codes Minkyu Kang

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1467197178-24783-2-git-send-email-jh80.chung@samsung.com \
    --to=jh80.chung@samsung.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.