mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-09-28 23:50:26 +09:00
spi: omap3: Fix redeclared error
omap3_spi_set_speed|mode redeclared bus symbol, fix the same. error: drivers/spi/omap3_spi.c: In function ‘omap3_spi_set_speed’: drivers/spi/omap3_spi.c:650:18: error: ‘bus’ redeclared as different kind of symbol struct udevice *bus = dev->parent; Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
This commit is contained in:
parent
c2a7a7ef86
commit
b2b41d2777
@ -645,7 +645,7 @@ static int omap3_spi_xfer(struct udevice *dev, unsigned int bitlen,
|
|||||||
return _spi_xfer(priv, bitlen, dout, din, flags);
|
return _spi_xfer(priv, bitlen, dout, din, flags);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int omap3_spi_set_speed(struct udevice *bus, unsigned int speed)
|
static int omap3_spi_set_speed(struct udevice *dev, unsigned int speed)
|
||||||
{
|
{
|
||||||
struct udevice *bus = dev->parent;
|
struct udevice *bus = dev->parent;
|
||||||
struct omap3_spi_priv *priv = dev_get_priv(bus);
|
struct omap3_spi_priv *priv = dev_get_priv(bus);
|
||||||
@ -658,7 +658,7 @@ static int omap3_spi_set_speed(struct udevice *bus, unsigned int speed)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int omap3_spi_set_mode(struct udevice *bus, uint mode)
|
static int omap3_spi_set_mode(struct udevice *dev, uint mode)
|
||||||
{
|
{
|
||||||
struct udevice *bus = dev->parent;
|
struct udevice *bus = dev->parent;
|
||||||
struct omap3_spi_priv *priv = dev_get_priv(bus);
|
struct omap3_spi_priv *priv = dev_get_priv(bus);
|
||||||
|
Loading…
Reference in New Issue
Block a user