summaryrefslogtreecommitdiffstats
path: root/ichspi.c
diff options
context:
space:
mode:
Diffstat (limited to 'ichspi.c')
-rw-r--r--ichspi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ichspi.c b/ichspi.c
index 80fcff5eb..20dac1b48 100644
--- a/ichspi.c
+++ b/ichspi.c
@@ -1731,7 +1731,7 @@ 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));
+ memset(&desc, 0x00, sizeof(desc));
/* Moving registers / bits */
switch (ich_gen) {