diff mbox

[U-Boot] mmc: sdhci: fix the compiler warning when disable CONFIG_MMC_SDMA

Message ID 1470373622-2994-1-git-send-email-jh80.chung@samsung.com
State Accepted
Commit 89f69e51734f5d704ef84503d24907bfde2f5577
Delegated to: Jaehoon Chung
Headers show

Commit Message

Jaehoon Chung Aug. 5, 2016, 5:07 a.m. UTC
When disabled CONFIG_MMC_SDMA, variable caps didn't use.
This patch fixes the compl

Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
---
 drivers/mmc/sdhci.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Jaehoon Chung Aug. 5, 2016, 5:09 a.m. UTC | #1
Sorry, discard this..
I will resend the patch with commit msg.

On 08/05/2016 02:07 PM, Jaehoon Chung wrote:
> When disabled CONFIG_MMC_SDMA, variable caps didn't use.
> This patch fixes the compl
> 
> Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
> ---
>  drivers/mmc/sdhci.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/mmc/sdhci.c b/drivers/mmc/sdhci.c
> index 60108fd..7ddb549 100644
> --- a/drivers/mmc/sdhci.c
> +++ b/drivers/mmc/sdhci.c
> @@ -575,10 +575,10 @@ int sdhci_bind(struct udevice *dev, struct mmc *mmc, struct mmc_config *cfg)
>  #else
>  int add_sdhci(struct sdhci_host *host, u32 max_clk, u32 min_clk)
>  {
> +#ifdef CONFIG_MMC_SDMA
>  	unsigned int caps;
>  
>  	caps = sdhci_readl(host, SDHCI_CAPABILITIES);
> -#ifdef CONFIG_MMC_SDMA
>  	if (!(caps & SDHCI_CAN_DO_SDMA)) {
>  		printf("%s: Your controller doesn't support SDMA!!\n",
>  		       __func__);
>
diff mbox

Patch

diff --git a/drivers/mmc/sdhci.c b/drivers/mmc/sdhci.c
index 60108fd..7ddb549 100644
--- a/drivers/mmc/sdhci.c
+++ b/drivers/mmc/sdhci.c
@@ -575,10 +575,10 @@  int sdhci_bind(struct udevice *dev, struct mmc *mmc, struct mmc_config *cfg)
 #else
 int add_sdhci(struct sdhci_host *host, u32 max_clk, u32 min_clk)
 {
+#ifdef CONFIG_MMC_SDMA
 	unsigned int caps;
 
 	caps = sdhci_readl(host, SDHCI_CAPABILITIES);
-#ifdef CONFIG_MMC_SDMA
 	if (!(caps & SDHCI_CAN_DO_SDMA)) {
 		printf("%s: Your controller doesn't support SDMA!!\n",
 		       __func__);