Merge "fix(s32g274a): avoid overwriting const fields" into integration
diff --git a/plat/nxp/s32/s32g274ardb2/plat_console.c b/plat/nxp/s32/s32g274ardb2/plat_console.c
index 27cae12..542fa7b 100644
--- a/plat/nxp/s32/s32g274ardb2/plat_console.c
+++ b/plat/nxp/s32/s32g274ardb2/plat_console.c
@@ -11,11 +11,12 @@
void console_s32g2_register(void)
{
- static console_t s32g2_console;
+ static console_t s32g2_console = {
+ .next = NULL,
+ .flags = 0u,
+ };
int ret;
- (void)memset(&s32g2_console, 0, sizeof(s32g2_console));
-
ret = console_linflex_register(UART_BASE, UART_CLOCK_HZ,
UART_BAUDRATE, &s32g2_console);
if (ret == 0) {