summaryrefslogtreecommitdiffstats
path: root/drivers/spi/spi-mpc512x-psc.c
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2023-03-06 20:31:14 +0200
committerMark Brown <broonie@kernel.org>2023-03-07 13:58:33 +0000
commit289c084ddc1317e6ed911911f95371679c10af1e (patch)
tree8e7d1669707ff72bb793a4d23d7d85e9e5aa11f9 /drivers/spi/spi-mpc512x-psc.c
parent9e21720a49589304aef9e37e8b6c6a4196daf156 (diff)
downloadlinux-stable-289c084ddc1317e6ed911911f95371679c10af1e.tar.gz
linux-stable-289c084ddc1317e6ed911911f95371679c10af1e.tar.bz2
linux-stable-289c084ddc1317e6ed911911f95371679c10af1e.zip
spi: mpc5xxx-psc: 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/20230306183115.87314-5-andriy.shevchenko@linux.intel.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/spi/spi-mpc512x-psc.c')
-rw-r--r--drivers/spi/spi-mpc512x-psc.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/spi/spi-mpc512x-psc.c b/drivers/spi/spi-mpc512x-psc.c
index 739df2b241e9..77a228f633d1 100644
--- a/drivers/spi/spi-mpc512x-psc.c
+++ b/drivers/spi/spi-mpc512x-psc.c
@@ -17,6 +17,7 @@
#include <linux/completion.h>
#include <linux/io.h>
#include <linux/platform_device.h>
+#include <linux/property.h>
#include <linux/delay.h>
#include <linux/clk.h>
#include <linux/spi/spi.h>
@@ -478,7 +479,8 @@ static int mpc512x_psc_spi_of_probe(struct platform_device *pdev)
master->unprepare_transfer_hardware = mpc512x_psc_spi_unprep_xfer_hw;
master->use_gpio_descriptors = true;
master->cleanup = mpc512x_psc_spi_cleanup;
- master->dev.of_node = dev->of_node;
+
+ device_set_node(&master->dev, dev_fwnode(dev));
tempp = devm_platform_get_and_ioremap_resource(pdev, 0, NULL);
if (IS_ERR(tempp))