mirror of
https://github.com/smaeul/u-boot.git
synced 2025-10-14 12:56:00 +01:00
spi: synquacer: busy variable must be initialized before use
"busy" variable is ORed without being initialized, must be zeroed before use. Signed-off-by: Masahisa Kojima <masahisa.kojima@linaro.org> Signed-off-by: Satoru Okamoto <okamoto.satoru@socionext.com> Acked-by: Jassi Brar <jaswinder.singh@linaro.org>
This commit is contained in:
parent
f49d616bea
commit
29d382b94e
@ -275,7 +275,7 @@ static int synquacer_spi_xfer(struct udevice *dev, unsigned int bitlen,
|
||||
{
|
||||
struct udevice *bus = dev->parent;
|
||||
struct synquacer_spi_priv *priv = dev_get_priv(bus);
|
||||
u32 val, words, busy;
|
||||
u32 val, words, busy = 0;
|
||||
|
||||
val = readl(priv->base + FIFOCFG);
|
||||
val |= (1 << RX_FLUSH);
|
||||
|
Loading…
x
Reference in New Issue
Block a user