Commit e6609c26 authored by Andy Shevchenko's avatar Andy Shevchenko Committed by Mark Brown

spi: dln2: Propagate firmware node

Propagate firmware node by using a specific API call, i.e. device_set_node().
Signed-off-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20211222155739.7699-1-andriy.shevchenko@linux.intel.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent c7028245
...@@ -8,6 +8,7 @@ ...@@ -8,6 +8,7 @@
#include <linux/kernel.h> #include <linux/kernel.h>
#include <linux/module.h> #include <linux/module.h>
#include <linux/platform_device.h> #include <linux/platform_device.h>
#include <linux/property.h>
#include <linux/mfd/dln2.h> #include <linux/mfd/dln2.h>
#include <linux/spi/spi.h> #include <linux/spi/spi.h>
#include <linux/pm_runtime.h> #include <linux/pm_runtime.h>
...@@ -688,6 +689,8 @@ static int dln2_spi_probe(struct platform_device *pdev) ...@@ -688,6 +689,8 @@ static int dln2_spi_probe(struct platform_device *pdev)
if (!master) if (!master)
return -ENOMEM; return -ENOMEM;
device_set_node(&master->dev, dev_fwnode(dev));
platform_set_drvdata(pdev, master); platform_set_drvdata(pdev, master);
dln2 = spi_master_get_devdata(master); dln2 = spi_master_get_devdata(master);
...@@ -699,7 +702,6 @@ static int dln2_spi_probe(struct platform_device *pdev) ...@@ -699,7 +702,6 @@ static int dln2_spi_probe(struct platform_device *pdev)
} }
dln2->master = master; dln2->master = master;
dln2->master->dev.of_node = dev->of_node;
dln2->pdev = pdev; dln2->pdev = pdev;
dln2->port = pdata->port; dln2->port = pdata->port;
/* cs/mode can never be 0xff, so the first transfer will set them */ /* cs/mode can never be 0xff, so the first transfer will set them */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment