summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-imx
diff options
context:
space:
mode:
authorAhmad Fatoum <a.fatoum@pengutronix.de>2020-02-10 14:09:51 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2020-02-19 09:18:05 +0100
commit0b1ffec27b0dca8d57d8bfd6a9c3da62fe851812 (patch)
treee103f79a63d80c8aeaaadb813afb60660e975fd1 /arch/arm/mach-imx
parent63345435ac53949dc07b4ee7f31be4137b4132d1 (diff)
downloadbarebox-0b1ffec27b0dca8d57d8bfd6a9c3da62fe851812.tar.gz
barebox-0b1ffec27b0dca8d57d8bfd6a9c3da62fe851812.tar.xz
reset_source: migrate from reset_source_name to reset_source_to_string
Whether reset_source_name() returns the just set reset_source is dependent on probe order and the priorities of prior reset sources in relation to the current one. Make this more robust by using the new reset_source_to_string. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-imx')
-rw-r--r--arch/arm/mach-imx/imx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-imx/imx.c b/arch/arm/mach-imx/imx.c
index 0942d50695..d5ce25d457 100644
--- a/arch/arm/mach-imx/imx.c
+++ b/arch/arm/mach-imx/imx.c
@@ -202,5 +202,5 @@ void imx_set_reset_reason(void __iomem *srsr,
reset_source_set_prinst(type, RESET_SOURCE_DEFAULT_PRIORITY, instance);
pr_info("i.MX reset reason %s (SRSR: 0x%08x)\n",
- reset_source_name(), reg);
+ reset_source_to_string(type), reg);
}