summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilippe Schenker <philippe.schenker@toradex.com>2020-08-18 13:51:41 +0200
committerFrancesco Dolcini <francesco.dolcini@toradex.com>2023-01-19 11:10:14 +0000
commit8fdf444b29d8b8e694ab8ef8c32f09b06d05220a (patch)
treed7c30262dbc6ac24828bd9f65a641f021b861f3c
parent1c83b1aaad86308c91d50abc2ac7cb6c59dd2c52 (diff)
board: apalis-imx8: get rid of sc_err_t type
sc_pm_setup_uart() returns int, not sc_err_t. Upstream-Status: Submitted [https://lore.kernel.org/u-boot/20230113171751.331268-18-francesco@dolcini.it/] (cherry picked from commit ecc0917dd4f7efd064a1b58f4f75b85478a794b3) Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com> Signed-off-by: Andrejs Cainikovs <andrejs.cainikovs@toradex.com>
-rw-r--r--board/toradex/apalis-imx8/apalis-imx8.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/board/toradex/apalis-imx8/apalis-imx8.c b/board/toradex/apalis-imx8/apalis-imx8.c
index 1eaf9951d5..ad29b09614 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();