summaryrefslogtreecommitdiff
path: root/arch/arm/cpu/armv8
diff options
context:
space:
mode:
authorJean-Francois Dagenais <jeff.dagenais@gmail.com>2017-04-03 01:44:35 (GMT)
committerMichal Simek <michal.simek@xilinx.com>2017-06-19 14:53:10 (GMT)
commit8bf62ae7da0eea6a152a9d76d009fb79113a3119 (patch)
treec0fd1d2a6dc341ffacb63dc7e8dcd3d959c09065 /arch/arm/cpu/armv8
parente3fdf5d05659dbe5ce3f9661a4eb3202005b2be2 (diff)
downloadu-boot-8bf62ae7da0eea6a152a9d76d009fb79113a3119.tar.xz
arm64: zynqmp: spl: use given boot_device instead of fetching it again
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>
Diffstat (limited to 'arch/arm/cpu/armv8')
-rw-r--r--arch/arm/cpu/armv8/zynqmp/spl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/cpu/armv8/zynqmp/spl.c b/arch/arm/cpu/armv8/zynqmp/spl.c
index 6afa074..db7432f 100644
--- a/arch/arm/cpu/armv8/zynqmp/spl.c
+++ b/arch/arm/cpu/armv8/zynqmp/spl.c
@@ -112,7 +112,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: