[PATCH v3 15/20] board: apalis-imx8: get rid of sc_err_t type
Francesco Dolcini
francesco at dolcini.it
Mon Jan 16 20:05:10 CET 2023
From: Philippe Schenker <philippe.schenker at toradex.com>
sc_pm_setup_uart() returns int, not sc_err_t.
Signed-off-by: Philippe Schenker <philippe.schenker at toradex.com>
Signed-off-by: Francesco Dolcini <francesco.dolcini at toradex.com>
Reviewed-by: Fabio Estevam <festevam at denx.de>
---
v3: added Reviewed-by: Fabio
v2: new patch
---
board/toradex/apalis-imx8/apalis-imx8.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/board/toradex/apalis-imx8/apalis-imx8.c b/board/toradex/apalis-imx8/apalis-imx8.c
index 743d015b8360..43456e8af995 100644
--- a/board/toradex/apalis-imx8/apalis-imx8.c
+++ b/board/toradex/apalis-imx8/apalis-imx8.c
@@ -169,12 +169,12 @@ void board_mem_get_layout(u64 *phys_sdram_1_start,
int board_early_init_f(void)
{
sc_pm_clock_rate_t rate = SC_80MHZ;
- sc_err_t err = 0;
+ int ret;
/* Set UART1 clock root to 80 MHz and enable it */
- err = sc_pm_setup_uart(SC_R_UART_1, rate);
- if (err != SC_ERR_NONE)
- return 0;
+ ret = sc_pm_setup_uart(SC_R_UART_1, rate);
+ if (ret)
+ return ret;
setup_iomux_uart();
--
2.25.1
More information about the U-Boot
mailing list