Skip to contentSkip to conversation

spi: at91: Use the SPI alias from devicetre

PATCH Applied Alexander Shiyan 2 participants 2 messages Jan 9, 2025 – Jan 10, 2025

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 spi: at91: Use the SPI alias from devicetre

---
 drivers/spi/atmel_spi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/spi/atmel_spi.c +1 -1
index 62e1c66fd2..f441bfdfe1 100644
@@ -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