summaryrefslogtreecommitdiffstats
path: root/it85spi.c
diff options
context:
space:
mode:
Diffstat (limited to 'it85spi.c')
-rw-r--r--it85spi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/it85spi.c b/it85spi.c
index 810f062c5..9812fc722 100644
--- a/it85spi.c
+++ b/it85spi.c
@@ -341,7 +341,7 @@ int it85xx_spi_init(struct superio s)
(unsigned int)base);
#endif
- data = calloc(1, sizeof(struct it85spi_data));
+ data = calloc(1, sizeof(*data));
if (!data) {
msg_perr("Unable to allocate space for extra SPI master data.\n");
return SPI_GENERIC_ERROR;