Fixes:
f343320f9e47 ("spi: s3c64xx: Add slave mode support")
This patch fixes uninitialized value checking of the slave mode.
Change-Id: I0fd06bf1d3fd075a0b283df5c39c0d3ab2e46d6c
Signed-off-by: Chanho Park <chanho61.park@samsung.com>
struct spi_transfer *xfer)
{
void __iomem *regs = sdd->regs;
- unsigned long val;
+ unsigned long val = 1;
u32 status;
int ms;
- if(spi_controller_is_slave(sdd->master)) {
+ if (spi_controller_is_slave(sdd->master)) {
/* Slave mode */
if (wait_for_completion_interruptible(&sdd->xfer_completion) ||
sdd->slave_aborted) {