diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2021-12-22 17:57:39 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2021-12-23 13:38:40 +0000 |
commit | 12baee68b2df6847f9a26ee82f30aa5f52c6d0d2 (patch) | |
tree | 14fc95700f61fb579aa91eab21619ae6b597ecc6 | |
parent | 27b6965ccb72e658eb2235f564a04d2775c956cf (diff) | |
download | linux-stable-12baee68b2df6847f9a26ee82f30aa5f52c6d0d2.tar.gz linux-stable-12baee68b2df6847f9a26ee82f30aa5f52c6d0d2.tar.bz2 linux-stable-12baee68b2df6847f9a26ee82f30aa5f52c6d0d2.zip |
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>
-rw-r--r-- | drivers/spi/spi-pxa2xx.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/spi/spi-pxa2xx.c b/drivers/spi/spi-pxa2xx.c index b3186bd0c2a8..e88f86274eeb 100644 --- a/drivers/spi/spi-pxa2xx.c +++ b/drivers/spi/spi-pxa2xx.c @@ -1664,8 +1664,7 @@ static int pxa2xx_spi_probe(struct platform_device *pdev) drv_data->controller_info = platform_info; drv_data->ssp = ssp; - controller->dev.of_node = dev->of_node; - controller->dev.fwnode = dev->fwnode; + device_set_node(&controller->dev, dev_fwnode(dev)); /* The spi->mode bits understood by this driver: */ controller->mode_bits = SPI_CPOL | SPI_CPHA | SPI_CS_HIGH | SPI_LOOP; |