diff mbox

[U-Boot,35/55] exynos: Correct return value in exynos_mmc_init()

Message ID 1435882592-487-36-git-send-email-sjg@chromium.org
State Accepted
Delegated to: Simon Glass
Headers show

Commit Message

Simon Glass July 3, 2015, 12:16 a.m. UTC
This function should return 0 on success, not 1. Fix it.

Signed-off-by: Simon Glass <sjg@chromium.org>
---

 drivers/mmc/s5p_sdhci.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Simon Glass July 27, 2015, 11:31 p.m. UTC | #1
On 2 July 2015 at 18:16, Simon Glass <sjg@chromium.org> wrote:
> This function should return 0 on success, not 1. Fix it.
>
> Signed-off-by: Simon Glass <sjg@chromium.org>
> ---
>
>  drivers/mmc/s5p_sdhci.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/mmc/s5p_sdhci.c b/drivers/mmc/s5p_sdhci.c
> index 8e1968a..522eab9 100644
> --- a/drivers/mmc/s5p_sdhci.c
> +++ b/drivers/mmc/s5p_sdhci.c
> @@ -202,6 +202,6 @@ int exynos_mmc_init(const void *blob)
>
>         process_nodes(blob, node_list, count);
>
> -       return 1;
> +       return 0;
>  }
>  #endif
> --
> 2.4.3.573.g4eafbef
>

Applied to u-boot-dm.
diff mbox

Patch

diff --git a/drivers/mmc/s5p_sdhci.c b/drivers/mmc/s5p_sdhci.c
index 8e1968a..522eab9 100644
--- a/drivers/mmc/s5p_sdhci.c
+++ b/drivers/mmc/s5p_sdhci.c
@@ -202,6 +202,6 @@  int exynos_mmc_init(const void *blob)
 
 	process_nodes(blob, node_list, count);
 
-	return 1;
+	return 0;
 }
 #endif