[PATCH] of/spi: Fix build failure on spi_ppc4xx.c
Grant Likely
grant.likely at secretlab.ca
Thu Jun 3 05:47:30 EST 2010
This patch fixes a build error caused by the OF device_node pointer
being moved into struct device.
Fixes bug introduced by commit 61c7a080a5a061c976988fd4b844dfb468dda255
(of: Always use 'struct device.of_node' to get device node pointer)
Signed-off-by: Grant Likely <grant.likely at secretlab.ca>
CC: Sean MacLennan <smaclennan at pikatech.com>
CC: spi-devel-general at lists.sourceforge.net
CC: devicetree-discuss at lists.ozlabs.org
---
I've applied this patch to my merge-devicetree branch
drivers/spi/spi_ppc4xx.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/spi/spi_ppc4xx.c b/drivers/spi/spi_ppc4xx.c
index 19c0b3b..d53466a 100644
--- a/drivers/spi/spi_ppc4xx.c
+++ b/drivers/spi/spi_ppc4xx.c
@@ -397,7 +397,7 @@ static int __init spi_ppc4xx_of_probe(struct of_device *op,
struct spi_master *master;
struct spi_bitbang *bbp;
struct resource resource;
- struct device_node *np = op->node;
+ struct device_node *np = op->dev.of_node;
struct device *dev = &op->dev;
struct device_node *opbnp;
int ret;
More information about the devicetree-discuss
mailing list