Skip to content

Commit

Permalink
of/spi: Fix build failure on spi_ppc4xx.c
Browse files Browse the repository at this point in the history
This patch fixes a build error caused by the OF device_node pointer
being moved into struct device.

Fixes bug introduced by commit 61c7a08
(of: Always use 'struct device.of_node' to get device node pointer)

Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
CC: Sean MacLennan <smaclennan@pikatech.com>
CC: spi-devel-general@lists.sourceforge.net
CC: devicetree-discuss@lists.ozlabs.org
  • Loading branch information
Grant Likely committed Jun 2, 2010
1 parent ffabc9a commit b535507
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/spi/spi_ppc4xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit b535507

Please sign in to comment.