aboutsummaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorYann Gautier <yann.gautier@st.com>2020-09-16 16:40:34 +0200
committerYann Gautier <yann.gautier@foss.st.com>2021-06-22 14:10:27 +0200
commit8f97c4fab1769b3f7f37a2a7a01ade36e5c94eaa (patch)
tree0fe9bed1ef83cbd0ee2d3f51a3f156da387f129a /drivers
parentc3327408eb4b5852c0ed9d8933c35aaa6de34c21 (diff)
downloadtrusted-firmware-a-8f97c4fab1769b3f7f37a2a7a01ade36e5c94eaa.tar.gz
fix(drivers/st/clk): use correct return value
The function stm32mp1_clk_init() returns an int. Return a negative error value if the device tree is not found. Change-Id: I422d5fea46c4d63d55a5b62e1db154c1f53f41b7 Signed-off-by: Yann Gautier <yann.gautier@st.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/st/clk/stm32mp1_clk.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/st/clk/stm32mp1_clk.c b/drivers/st/clk/stm32mp1_clk.c
index 564bd87989..6ada96a520 100644
--- a/drivers/st/clk/stm32mp1_clk.c
+++ b/drivers/st/clk/stm32mp1_clk.c
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2018-2020, STMicroelectronics - All Rights Reserved
+ * Copyright (C) 2018-2021, STMicroelectronics - All Rights Reserved
*
* SPDX-License-Identifier: GPL-2.0+ OR BSD-3-Clause
*/
@@ -1737,7 +1737,7 @@ int stm32mp1_clk_init(void)
void *fdt;
if (fdt_get_address(&fdt) == 0) {
- return false;
+ return -FDT_ERR_NOTFOUND;
}
/* Check status field to disable security */