diff mbox

[U-Boot,4/5] arm64: zynqmp: spl: use given boot_device instead of fetching it again

Message ID 92a8ebd240b1c9227ba87ac0e0f1191d6dc09c70.1494574377.git.michal.simek@xilinx.com
State Accepted
Commit 8bf62ae7da0eea6a152a9d76d009fb79113a3119
Delegated to: Michal Simek
Headers show

Commit Message

Michal Simek May 12, 2017, 7:32 a.m. UTC
From: Jean-Francois Dagenais <jeff.dagenais@gmail.com>

The boot_device argument to spl_boot_mode was massively added without
actually modifying the existing functions.

This commit actually makes use of the handed value, which is the same.

Signed-off-by: Jean-Francois Dagenais <jeff.dagenais@gmail.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
---

 arch/arm/cpu/armv8/zynqmp/spl.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox

Patch

diff --git a/arch/arm/cpu/armv8/zynqmp/spl.c b/arch/arm/cpu/armv8/zynqmp/spl.c
index 5ea731cd3018..e5a413954a5b 100644
--- a/arch/arm/cpu/armv8/zynqmp/spl.c
+++ b/arch/arm/cpu/armv8/zynqmp/spl.c
@@ -117,7 +117,7 @@  u32 spl_boot_device(void)
 
 u32 spl_boot_mode(const u32 boot_device)
 {
-	switch (spl_boot_device()) {
+	switch (boot_device) {
 	case BOOT_DEVICE_RAM:
 		return 0;
 	case BOOT_DEVICE_MMC1: