spi: at91: Use the SPI alias from devicetre
Subsystems (2)
PATCH 1/1 spi: at91: Use the SPI alias from devicetre
Signed-off-by Alexander Shiyan <[email protected]>
--- drivers/spi/atmel_spi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/spi/atmel_spi.c +1 -1
@@ -402,7 +402,7 @@ static int atmel_spi_probe(struct device *dev) master = &as->master; master->dev = dev; - master->bus_num = dev->id; + master->bus_num = pdata ? dev->id :-1 ;if (pdata) { master->num_chipselect = pdata->num_chipselect;
Signature · 1 line
2.39.1
Sascha Hauer
AppliedQuoted 1 line · Alexander Shiyan
Applied, thanks!
[1/1] spi: at91: Use the SPI alias from devicetre
https://git.pengutronix.de/cgit/barebox/commit/?id=81cd37833300 (link may not be stable)
Best regards,
Signature · 1 line
Sascha Hauer <[email protected]>