Skip to content

Commit e08433e

Browse files
ambarusbroonie
authored andcommitted
spi: s3c64xx: let the SPI core determine the bus number
Let the core determine the bus number, either by getting the alias ID (as the driver forces now), or by allocating a dynamic bus number when the alias is absent. Prepare the driver to allow dt aliases to be absent. Signed-off-by: Tudor Ambarus <tudor.ambarus@linaro.org> Link: https://msgid.link/r/20240216070555.2483977-8-tudor.ambarus@linaro.org Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent 82b98fb commit e08433e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

drivers/spi/spi-s3c64xx.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1279,7 +1279,7 @@ static int s3c64xx_spi_probe(struct platform_device *pdev)
12791279
sdd->rx_dma.direction = DMA_DEV_TO_MEM;
12801280

12811281
host->dev.of_node = pdev->dev.of_node;
1282-
host->bus_num = sdd->port_id;
1282+
host->bus_num = -1;
12831283
host->setup = s3c64xx_spi_setup;
12841284
host->cleanup = s3c64xx_spi_cleanup;
12851285
host->prepare_transfer_hardware = s3c64xx_spi_prepare_transfer;
@@ -1360,7 +1360,7 @@ static int s3c64xx_spi_probe(struct platform_device *pdev)
13601360
}
13611361

13621362
dev_dbg(&pdev->dev, "Samsung SoC SPI Driver loaded for Bus SPI-%d with %d Targets attached\n",
1363-
sdd->port_id, host->num_chipselect);
1363+
host->bus_num, host->num_chipselect);
13641364
dev_dbg(&pdev->dev, "\tIOmem=[%pR]\tFIFO %dbytes\n",
13651365
mem_res, sdd->fifo_depth);
13661366

0 commit comments

Comments
 (0)