summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/utils/serial/fdt_serial_gaisler.c2
-rw-r--r--lib/utils/serial/fdt_serial_shakti.c2
-rw-r--r--lib/utils/serial/fdt_serial_sifive.c2
-rw-r--r--lib/utils/serial/fdt_serial_uart8250.c2
-rw-r--r--lib/utils/serial/fdt_serial_xlnx_uartlite.c2
-rw-r--r--platform/fpga/openpiton/platform.c2
6 files changed, 6 insertions, 6 deletions
diff --git a/lib/utils/serial/fdt_serial_gaisler.c b/lib/utils/serial/fdt_serial_gaisler.c
index 9a9f9a8b..74988e34 100644
--- a/lib/utils/serial/fdt_serial_gaisler.c
+++ b/lib/utils/serial/fdt_serial_gaisler.c
@@ -15,7 +15,7 @@ static int serial_gaisler_init(void *fdt, int nodeoff,
const struct fdt_match *match)
{
int rc;
- struct platform_uart_data uart;
+ struct platform_uart_data uart = { 0 };
rc = fdt_parse_gaisler_uart_node(fdt, nodeoff, &uart);
if (rc)
diff --git a/lib/utils/serial/fdt_serial_shakti.c b/lib/utils/serial/fdt_serial_shakti.c
index 4f91419e..0e056303 100644
--- a/lib/utils/serial/fdt_serial_shakti.c
+++ b/lib/utils/serial/fdt_serial_shakti.c
@@ -13,7 +13,7 @@ static int serial_shakti_init(void *fdt, int nodeoff,
const struct fdt_match *match)
{
int rc;
- struct platform_uart_data uart;
+ struct platform_uart_data uart = { 0 };
rc = fdt_parse_shakti_uart_node(fdt, nodeoff, &uart);
if (rc)
diff --git a/lib/utils/serial/fdt_serial_sifive.c b/lib/utils/serial/fdt_serial_sifive.c
index f4c833c1..3ca10913 100644
--- a/lib/utils/serial/fdt_serial_sifive.c
+++ b/lib/utils/serial/fdt_serial_sifive.c
@@ -15,7 +15,7 @@ static int serial_sifive_init(void *fdt, int nodeoff,
const struct fdt_match *match)
{
int rc;
- struct platform_uart_data uart;
+ struct platform_uart_data uart = { 0 };
rc = fdt_parse_sifive_uart_node(fdt, nodeoff, &uart);
if (rc)
diff --git a/lib/utils/serial/fdt_serial_uart8250.c b/lib/utils/serial/fdt_serial_uart8250.c
index 544b7416..0b95f2d9 100644
--- a/lib/utils/serial/fdt_serial_uart8250.c
+++ b/lib/utils/serial/fdt_serial_uart8250.c
@@ -15,7 +15,7 @@ static int serial_uart8250_init(void *fdt, int nodeoff,
const struct fdt_match *match)
{
int rc;
- struct platform_uart_data uart;
+ struct platform_uart_data uart = { 0 };
rc = fdt_parse_uart8250_node(fdt, nodeoff, &uart);
if (rc)
diff --git a/lib/utils/serial/fdt_serial_xlnx_uartlite.c b/lib/utils/serial/fdt_serial_xlnx_uartlite.c
index 466e16e8..9f04aea3 100644
--- a/lib/utils/serial/fdt_serial_xlnx_uartlite.c
+++ b/lib/utils/serial/fdt_serial_xlnx_uartlite.c
@@ -15,7 +15,7 @@ static int serial_xlnx_uartlite_init(void *fdt, int nodeoff,
const struct fdt_match *match)
{
int rc;
- struct platform_uart_data uart;
+ struct platform_uart_data uart = { 0 };
rc = fdt_parse_xlnx_uartlite_node(fdt, nodeoff, &uart);
if (rc)
diff --git a/platform/fpga/openpiton/platform.c b/platform/fpga/openpiton/platform.c
index 7ca21236..5ff7d200 100644
--- a/platform/fpga/openpiton/platform.c
+++ b/platform/fpga/openpiton/platform.c
@@ -69,7 +69,7 @@ static struct aclint_mtimer_data mtimer = {
static int openpiton_early_init(bool cold_boot)
{
void *fdt;
- struct platform_uart_data uart_data;
+ struct platform_uart_data uart_data = { 0 };
struct plic_data plic_data;
unsigned long aclint_freq;
uint64_t clint_addr;