spi: pxa2xx: Propagate firmware node

Propagate firmware node by using a specific API call, i.e. device_set_node().

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20211222155739.7699-3-andriy.shevchenko@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
Andy Shevchenko 2021-12-22 17:57:39 +02:00 committed by Mark Brown
parent 27b6965ccb
commit 12baee68b2
No known key found for this signature in database
GPG Key ID: 24D68B725D5487D0
1 changed files with 1 additions and 2 deletions

View File

@ -1664,8 +1664,7 @@ static int pxa2xx_spi_probe(struct platform_device *pdev)
drv_data->controller_info = platform_info; drv_data->controller_info = platform_info;
drv_data->ssp = ssp; drv_data->ssp = ssp;
controller->dev.of_node = dev->of_node; device_set_node(&controller->dev, dev_fwnode(dev));
controller->dev.fwnode = dev->fwnode;
/* The spi->mode bits understood by this driver: */ /* The spi->mode bits understood by this driver: */
controller->mode_bits = SPI_CPOL | SPI_CPHA | SPI_CS_HIGH | SPI_LOOP; controller->mode_bits = SPI_CPOL | SPI_CPHA | SPI_CS_HIGH | SPI_LOOP;