aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStewart Smith <stewart@linux.vnet.ibm.com>2017-03-03 18:08:51 +1100
committerStewart Smith <stewart@linux.vnet.ibm.com>2017-03-03 18:08:51 +1100
commita5c2c894bb10ed563da16cbb741fde62cd2f3f51 (patch)
tree993ddf2e44dc7b5e4b906d03ef2fe61979775aaa
parentfcb5114c426119dedb0226137d4a3468462f979f (diff)
downloadskiboot-a5c2c894bb10ed563da16cbb741fde62cd2f3f51.zip
skiboot-a5c2c894bb10ed563da16cbb741fde62cd2f3f51.tar.gz
skiboot-a5c2c894bb10ed563da16cbb741fde62cd2f3f51.tar.bz2
Fixup init of struct lpc_client
Gcc 4.8 would warn: hw/lpc-uart.c: In function 'uart_setup_os_passthrough': hw/lpc-uart.c:428:2: error: missing initializer for field 'reset' of 'struct lpc_client' [-Werror=missing-field-initializers] Fixes: a2940770ca6da2c58081f8207aded197e45f6cd6 Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
-rw-r--r--hw/lpc-uart.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/hw/lpc-uart.c b/hw/lpc-uart.c
index e536bbd..9034fbd 100644
--- a/hw/lpc-uart.c
+++ b/hw/lpc-uart.c
@@ -425,6 +425,9 @@ static void uart_setup_os_passthrough(void)
char *path;
static struct lpc_client uart_lpc_os_client = {
+ .reset = NULL,
+ .interrupt = NULL,
+ .interrupts = 0
};
dt_add_property_strings(uart_node, "status", "ok");