mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH] spi: at91: Use the SPI alias from devicetre
@ 2025-01-09  7:36 Alexander Shiyan
  0 siblings, 0 replies; only message in thread
From: Alexander Shiyan @ 2025-01-09  7:36 UTC (permalink / raw)
  To: barebox; +Cc: Alexander Shiyan

Signed-off-by: Alexander Shiyan <eagle.alexander923@gmail.com>
---
 drivers/spi/atmel_spi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/spi/atmel_spi.c b/drivers/spi/atmel_spi.c
index 62e1c66fd2..f441bfdfe1 100644
--- a/drivers/spi/atmel_spi.c
+++ b/drivers/spi/atmel_spi.c
@@ -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;
-- 
2.39.1




^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2025-01-09  7:38 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-01-09  7:36 [PATCH] spi: at91: Use the SPI alias from devicetre Alexander Shiyan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox