Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

spi: dln2: 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-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Andy Shevchenko and committed by
Mark Brown
e6609c26 c7028245

+3 -1
+3 -1
drivers/spi/spi-dln2.c
··· 8 8 #include <linux/kernel.h> 9 9 #include <linux/module.h> 10 10 #include <linux/platform_device.h> 11 + #include <linux/property.h> 11 12 #include <linux/mfd/dln2.h> 12 13 #include <linux/spi/spi.h> 13 14 #include <linux/pm_runtime.h> ··· 689 688 if (!master) 690 689 return -ENOMEM; 691 690 691 + device_set_node(&master->dev, dev_fwnode(dev)); 692 + 692 693 platform_set_drvdata(pdev, master); 693 694 694 695 dln2 = spi_master_get_devdata(master); ··· 702 699 } 703 700 704 701 dln2->master = master; 705 - dln2->master->dev.of_node = dev->of_node; 706 702 dln2->pdev = pdev; 707 703 dln2->port = pdata->port; 708 704 /* cs/mode can never be 0xff, so the first transfer will set them */