diff options
author | Ahmad Fatoum <a.fatoum@pengutronix.de> | 2022-07-20 07:50:40 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2022-08-09 09:38:36 +0200 |
commit | 2fc6302090cd77c368cf784adf91dc2beb71764c (patch) | |
tree | 3f17cfe618da72406f1935a2b97aa6f73baa1bc7 /arch/arm/mach-zynqmp | |
parent | ef65ce9ba18d53f3aa046fef01ed63672bccf6b8 (diff) | |
download | barebox-2fc6302090cd77c368cf784adf91dc2beb71764c.tar.gz barebox-2fc6302090cd77c368cf784adf91dc2beb71764c.tar.xz |
bootsource: rename existing bootsource_set to bootsource_set_raw
Patterns like [ "$bootsource" = mmc ] && boot mmc$bootsource_instance
expect that ${bootsource_instance} and MMC aliases align, which may not
always be the case. In preparation for adding a new bootsource_set
function that consults an optional mapping table from bootrom
bootsource_instance to board-specific device numbering, rename all
existing instances to bootsource_set_raw. While at it, clean up the
legacy split into bootsource_set and bootsource_set_instance and have
the new bootsource_set_raw accept both arguments at once.
No functional change intended.
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Link: https://lore.barebox.org/20220720055042.3510276-2-a.fatoum@pengutronix.de
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-zynqmp')
-rw-r--r-- | arch/arm/mach-zynqmp/zynqmp.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/arm/mach-zynqmp/zynqmp.c b/arch/arm/mach-zynqmp/zynqmp.c index 610d4bba6e..312325956a 100644 --- a/arch/arm/mach-zynqmp/zynqmp.c +++ b/arch/arm/mach-zynqmp/zynqmp.c @@ -148,8 +148,7 @@ static int zynqmp_init(void) int boot_instance; zynqmp_get_bootsource(&boot_src, &boot_instance); - bootsource_set(boot_src); - bootsource_set_instance(boot_instance); + bootsource_set_raw(boot_src, boot_instance); reset_source_set(zynqmp_get_reset_src()); |