diff options
-rw-r--r-- | drivers/spi/imx_cspi.c | 4 | ||||
-rw-r--r-- | drivers/spi/imx_ecspi.c | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/drivers/spi/imx_cspi.c b/drivers/spi/imx_cspi.c index 438ab8d..1f4e117 100644 --- a/drivers/spi/imx_cspi.c +++ b/drivers/spi/imx_cspi.c @@ -1,5 +1,5 @@ /* - * (C) Copyright 2008-2010 Freescale Semiconductor, Inc. + * (C) Copyright 2008-2012 Freescale Semiconductor, Inc. * * See file CREDITS for list of people who contributed to this * project. @@ -116,6 +116,8 @@ struct spi_slave *spi_setup_slave(unsigned int bus, unsigned int cs, if (!imx_spi_slave) return NULL; + memset(imx_spi_slave, 0, sizeof(struct imx_spi_dev_t)); + imx_spi_slave->slave.bus = bus; imx_spi_slave->slave.cs = cs; diff --git a/drivers/spi/imx_ecspi.c b/drivers/spi/imx_ecspi.c index 1e86cf1..2e26205 100644 --- a/drivers/spi/imx_ecspi.c +++ b/drivers/spi/imx_ecspi.c @@ -1,5 +1,5 @@ /* - * (C) Copyright 2008-2010 Freescale Semiconductor, Inc. + * (C) Copyright 2008-2012 Freescale Semiconductor, Inc. * * See file CREDITS for list of people who contributed to this * project. @@ -152,6 +152,8 @@ struct spi_slave *spi_setup_slave(unsigned int bus, unsigned int cs, if (!imx_spi_slave) return NULL; + memset(imx_spi_slave, 0, sizeof(struct imx_spi_dev_t)); + imx_spi_slave->slave.bus = bus; imx_spi_slave->slave.cs = cs; |