]> git.baikalelectronics.ru Git - uboot.git/commitdiff
board: apalis-imx8: get rid of sc_err_t type
authorPhilippe Schenker <philippe.schenker@toradex.com>
Mon, 16 Jan 2023 19:05:10 +0000 (20:05 +0100)
committerStefano Babic <sbabic@denx.de>
Mon, 30 Jan 2023 20:02:27 +0000 (21:02 +0100)
sc_pm_setup_uart() returns int, not sc_err_t.

Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>
Signed-off-by: Francesco Dolcini <francesco.dolcini@toradex.com>
Reviewed-by: Fabio Estevam <festevam@denx.de>
board/toradex/apalis-imx8/apalis-imx8.c

index 743d015b83602a435184aada0f4e168190130741..43456e8af9958dc8dc757608d34c66507ef804fc 100644 (file)
@@ -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();