mirror of
https://review.coreboot.org/flashrom.git
synced 2025-04-29 07:53:44 +02:00
Fix one more -Wmissing-field-initializers warning
Fixes: ichspi.c: In function ‘ich_init_spi’: ichspi.c:1707:9: warning: missing initializer for field ‘component’ Change-Id: Iee5728167963fece24822ad2e3ab7bd9d444b42c Signed-off-by: Richard Hughes <richard@hughsie.com> Reviewed-on: https://review.coreboot.org/c/31224 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Nico Huber <nico.h@gmx.de>
This commit is contained in:
parent
84b453e4d4
commit
e2cbb12f22
4
ichspi.c
4
ichspi.c
@ -1704,7 +1704,7 @@ int ich_init_spi(void *spibar, enum ich_chipset ich_gen)
|
||||
char *arg;
|
||||
int ich_spi_rw_restricted = 0;
|
||||
int desc_valid = 0;
|
||||
struct ich_descriptors desc = { 0 };
|
||||
struct ich_descriptors desc;
|
||||
enum ich_spi_mode {
|
||||
ich_auto,
|
||||
ich_hwseq,
|
||||
@ -1715,6 +1715,8 @@ int ich_init_spi(void *spibar, enum ich_chipset ich_gen)
|
||||
ich_generation = ich_gen;
|
||||
ich_spibar = spibar;
|
||||
|
||||
memset(&desc, 0x00, sizeof(struct ich_descriptors));
|
||||
|
||||
/* Moving registers / bits */
|
||||
if (ich_generation == CHIPSET_100_SERIES_SUNRISE_POINT) {
|
||||
num_freg = 10;
|
||||
|
Loading…
x
Reference in New Issue
Block a user