diff options
author | Jagan Teki <jagan@amarulasolutions.com> | 2017-09-28 20:59:14 +0300 |
---|---|---|
committer | Stefano Babic <sbabic@denx.de> | 2017-10-12 18:31:16 +0300 |
commit | 683a06b1dc4b259d5b89b99b02bb76f08c1913e1 (patch) | |
tree | 5f76277898d7d58dc6e7631ecae77ee1f18c4be1 | |
parent | 913bdd65d39b8d2773ed0997e4bace5723d3ff73 (diff) | |
download | u-boot-683a06b1dc4b259d5b89b99b02bb76f08c1913e1.tar.xz |
icorem6_rqs: env: Return mmc devno
Instead of changing mmc devno from dts nodes better
to return the detected devno so-that env trigger the same.
Cc: Stefano Babic <sbabic@denx.de>
Cc: Tom Rini <trini@konsulko.com>
Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
-rw-r--r-- | board/engicam/icorem6_rqs/icorem6_rqs.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/board/engicam/icorem6_rqs/icorem6_rqs.c b/board/engicam/icorem6_rqs/icorem6_rqs.c index 2a321dca50..01148894c3 100644 --- a/board/engicam/icorem6_rqs/icorem6_rqs.c +++ b/board/engicam/icorem6_rqs/icorem6_rqs.c @@ -27,8 +27,7 @@ DECLARE_GLOBAL_DATA_PTR; #ifdef CONFIG_ENV_IS_IN_MMC int board_mmc_get_env_dev(int devno) { - /* dev 0 for SD/eSD, dev 1 for MMC/eMMC */ - return (devno == 3) ? 1 : 0; + return devno; } #endif |