projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4d986ff
)
spi: pxa2xx-pci: Do not dereference fwnode in struct device
author
Andy Shevchenko
<andriy.shevchenko@linux.intel.com>
Wed, 23 Feb 2022 19:19:48 +0000
(21:19 +0200)
committer
Mark Brown
<broonie@kernel.org>
Thu, 24 Feb 2022 13:43:51 +0000
(13:43 +0000)
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: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link:
https://lore.kernel.org/r/20220223191948.31325-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-pxa2xx-pci.c
patch
|
blob
|
history
diff --git
a/drivers/spi/spi-pxa2xx-pci.c
b/drivers/spi/spi-pxa2xx-pci.c
index
2e134eb
..
47c8cb5
100644
(file)
--- a/
drivers/spi/spi-pxa2xx-pci.c
+++ b/
drivers/spi/spi-pxa2xx-pci.c
@@
-261,7
+261,7
@@
static int pxa2xx_spi_pci_probe(struct pci_dev *dev,
return PTR_ERR(ssp->clk);
memset(&pi, 0, sizeof(pi));
- pi.fwnode = dev
->dev.fwnode
;
+ pi.fwnode = dev
_fwnode(&dev->dev)
;
pi.parent = &dev->dev;
pi.name = "pxa2xx-spi";
pi.id = ssp->port_id;