diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2021-05-17 17:03:43 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2021-05-18 14:05:29 +0100 |
commit | 94acf80755c8d8dd066d4f5a2afbdf393f0e2afd (patch) | |
tree | 79fd9a8722a4caf92dee2161b3a5a9b0925ba496 /drivers/spi | |
parent | 038b9de42269f33aca3e3741214c863a4e9328d0 (diff) | |
download | linux-94acf80755c8d8dd066d4f5a2afbdf393f0e2afd.tar.gz linux-94acf80755c8d8dd066d4f5a2afbdf393f0e2afd.tar.bz2 linux-94acf80755c8d8dd066d4f5a2afbdf393f0e2afd.zip |
spi: pxa2xx: Propagate firmware node to the child SPI controller device
SPI core may utilize properties and resources provided by the parent device.
Propagate firmware node to the child SPI controller device for that.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20210517140351.901-2-andriy.shevchenko@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/spi')
-rw-r--r-- | drivers/spi/spi-pxa2xx.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/spi/spi-pxa2xx.c b/drivers/spi/spi-pxa2xx.c index 5985b39e2dd6..38eef9033468 100644 --- a/drivers/spi/spi-pxa2xx.c +++ b/drivers/spi/spi-pxa2xx.c @@ -1718,7 +1718,9 @@ static int pxa2xx_spi_probe(struct platform_device *pdev) drv_data->controller_info = platform_info; drv_data->ssp = ssp; - controller->dev.of_node = pdev->dev.of_node; + controller->dev.of_node = dev->of_node; + controller->dev.fwnode = dev->fwnode; + /* the spi->mode bits understood by this driver: */ controller->mode_bits = SPI_CPOL | SPI_CPHA | SPI_CS_HIGH | SPI_LOOP; |