未验证 提交 a586f944 编写于 作者: A Andy Shevchenko 提交者: Mark Brown

spi: pxa2xx-pci: Do not dereference fwnode in struct device

In order to make the underneath API easier to change in the future,
prevent users from dereferencing fwnode from struct device.
Instead, use the specific dev_fwnode() API for that.
Signed-off-by: NAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20220223191948.31325-1-andriy.shevchenko@linux.intel.comSigned-off-by: NMark Brown <broonie@kernel.org>
上级 4d986ffa
...@@ -261,7 +261,7 @@ static int pxa2xx_spi_pci_probe(struct pci_dev *dev, ...@@ -261,7 +261,7 @@ static int pxa2xx_spi_pci_probe(struct pci_dev *dev,
return PTR_ERR(ssp->clk); return PTR_ERR(ssp->clk);
memset(&pi, 0, sizeof(pi)); memset(&pi, 0, sizeof(pi));
pi.fwnode = dev->dev.fwnode; pi.fwnode = dev_fwnode(&dev->dev);
pi.parent = &dev->dev; pi.parent = &dev->dev;
pi.name = "pxa2xx-spi"; pi.name = "pxa2xx-spi";
pi.id = ssp->port_id; pi.id = ssp->port_id;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册