Browse Source

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>
pull/1943/head
Yann Gautier 4 years ago
committed by Yann Gautier
parent
commit
8f97c4fab1
  1. 4
      drivers/st/clk/stm32mp1_clk.c

4
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 * SPDX-License-Identifier: GPL-2.0+ OR BSD-3-Clause
*/ */
@ -1737,7 +1737,7 @@ int stm32mp1_clk_init(void)
void *fdt; void *fdt;
if (fdt_get_address(&fdt) == 0) { if (fdt_get_address(&fdt) == 0) {
return false; return -FDT_ERR_NOTFOUND;
} }
/* Check status field to disable security */ /* Check status field to disable security */

Loading…
Cancel
Save