Commit b5355078 authored by Grant Likely's avatar Grant Likely

of/spi: Fix build failure on spi_ppc4xx.c

This patch fixes a build error caused by the OF device_node pointer
being moved into struct device.

Fixes bug introduced by commit 61c7a080
(of: Always use 'struct device.of_node' to get device node pointer)
Signed-off-by: default avatarGrant Likely <grant.likely@secretlab.ca>
CC: Sean MacLennan <smaclennan@pikatech.com>
CC: spi-devel-general@lists.sourceforge.net
CC: devicetree-discuss@lists.ozlabs.org
parent ffabc9a6
...@@ -397,7 +397,7 @@ static int __init spi_ppc4xx_of_probe(struct of_device *op, ...@@ -397,7 +397,7 @@ static int __init spi_ppc4xx_of_probe(struct of_device *op,
struct spi_master *master; struct spi_master *master;
struct spi_bitbang *bbp; struct spi_bitbang *bbp;
struct resource resource; struct resource resource;
struct device_node *np = op->node; struct device_node *np = op->dev.of_node;
struct device *dev = &op->dev; struct device *dev = &op->dev;
struct device_node *opbnp; struct device_node *opbnp;
int ret; int ret;
......
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