drivers: spi_k64: Fix compile error when syslog is enabled
Fixes following error: ... drivers/spi/spi_k64.c:717:86: error: 'cnt' undeclared (first use in this function) ... Change-Id: If49fa4838265cd39a6f72eb265388ff7faae9a9e Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
This commit is contained in:
parent
6e959810aa
commit
850e121ea7
1 changed files with 4 additions and 1 deletions
|
@ -714,8 +714,9 @@ static void spi_k64_push_data(struct device *dev)
|
|||
|
||||
} while (sys_read32(info->regs + SPI_K64_REG_SR) & SPI_K64_SR_TFFF);
|
||||
|
||||
#ifdef CONFIG_SPI_DEBUG
|
||||
SYS_LOG_DBG("pushed: %d\n", cnt);
|
||||
|
||||
#endif
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -776,7 +777,9 @@ static void spi_k64_pull_data(struct device *dev)
|
|||
} while (sys_read32(info->regs + SPI_K64_REG_SR) & SPI_K64_SR_RFDF);
|
||||
|
||||
|
||||
#ifdef CONFIG_SPI_DEBUG
|
||||
SYS_LOG_DBG("pulled: %d\n", cnt);
|
||||
#endif
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue