ARM: i.MX: boot: Coalesce copy-pasted code
All of the instances of imx*_boot_save_loc() do exactly the same thing
with the only difference being SoC-specific imx*_get_boot_source
call. Convert the code into a generic function taking function pointer
to perform SoC specific bits.

Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 7802c6f commit 8c489973200dfd9df9e918453f6de0f6a3b14bf7
@Andrey Smirnov Andrey Smirnov authored on 20 Apr 2018
Sascha Hauer committed on 25 Apr 2018
Showing 1 changed file
View
arch/arm/mach-imx/boot.c