All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v1 1/3] spi: dln2: Propagate firmware node
@ 2021-12-22 13:54 ` Andy Shevchenko
  0 siblings, 0 replies; 12+ messages in thread
From: Andy Shevchenko @ 2021-12-22 13:54 UTC (permalink / raw)
  To: Andy Shevchenko, Mark Brown, Serge Semin, linux-spi, linux-kernel,
	linux-arm-kernel
  Cc: Serge Semin, Daniel Mack, Haojian Zhuang, Robert Jarzmik

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

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
 drivers/spi/spi-dln2.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/spi/spi-dln2.c b/drivers/spi/spi-dln2.c
index 3ff63ab82f4f..ac83b406151d 100644
--- a/drivers/spi/spi-dln2.c
+++ b/drivers/spi/spi-dln2.c
@@ -688,6 +688,8 @@ static int dln2_spi_probe(struct platform_device *pdev)
 	if (!master)
 		return -ENOMEM;
 
+	device_set_node(&master->dev, dev_fwnode(dev));
+
 	platform_set_drvdata(pdev, master);
 
 	dln2 = spi_master_get_devdata(master);
@@ -699,7 +701,6 @@ static int dln2_spi_probe(struct platform_device *pdev)
 	}
 
 	dln2->master = master;
-	dln2->master->dev.of_node = dev->of_node;
 	dln2->pdev = pdev;
 	dln2->port = pdata->port;
 	/* cs/mode can never be 0xff, so the first transfer will set them */
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2021-12-23 17:19 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-12-22 13:54 [PATCH v1 1/3] spi: dln2: Propagate firmware node Andy Shevchenko
2021-12-22 13:54 ` Andy Shevchenko
2021-12-22 13:54 ` [PATCH v1 2/3] spi: dw: " Andy Shevchenko
2021-12-22 13:54   ` Andy Shevchenko
2021-12-22 13:54 ` [PATCH v1 3/3] spi: pxa2xx: " Andy Shevchenko
2021-12-22 13:54   ` Andy Shevchenko
2021-12-22 15:31 ` [PATCH v1 1/3] spi: dln2: " Mark Brown
2021-12-22 15:31   ` Mark Brown
2021-12-22 15:51   ` Andy Shevchenko
2021-12-22 15:51     ` Andy Shevchenko
2021-12-23 17:17 ` Mark Brown
2021-12-23 17:17   ` Mark Brown

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.