Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 198416
b: refs/heads/master
c: bf6a67e
h: refs/heads/master
v: v3
  • Loading branch information
Grant Likely committed May 25, 2010
1 parent 8cde03c commit f0773d2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b1e50ebcf24668e57f058deb48b0704b5391ed0f
refs/heads/master: bf6a67ee3427ab142136e03e90d0b67ecbca5ff2
8 changes: 4 additions & 4 deletions trunk/drivers/spi/xilinx_spi_of.c
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,13 @@ static int __devinit xilinx_spi_of_probe(struct of_device *ofdev,
const u32 *prop;
int len;

rc = of_address_to_resource(ofdev->node, 0, &r_mem);
rc = of_address_to_resource(ofdev->dev.of_node, 0, &r_mem);
if (rc) {
dev_warn(&ofdev->dev, "invalid address\n");
return rc;
}

rc = of_irq_to_resource(ofdev->node, 0, &r_irq);
rc = of_irq_to_resource(ofdev->dev.of_node, 0, &r_irq);
if (rc == NO_IRQ) {
dev_warn(&ofdev->dev, "no IRQ found\n");
return -ENODEV;
Expand All @@ -67,7 +67,7 @@ static int __devinit xilinx_spi_of_probe(struct of_device *ofdev,
return -ENOMEM;

/* number of slave select bits is required */
prop = of_get_property(ofdev->node, "xlnx,num-ss-bits", &len);
prop = of_get_property(ofdev->dev.of_node, "xlnx,num-ss-bits", &len);
if (!prop || len < sizeof(*prop)) {
dev_warn(&ofdev->dev, "no 'xlnx,num-ss-bits' property\n");
return -EINVAL;
Expand All @@ -81,7 +81,7 @@ static int __devinit xilinx_spi_of_probe(struct of_device *ofdev,
dev_set_drvdata(&ofdev->dev, master);

/* Add any subnodes on the SPI bus */
of_register_spi_devices(master, ofdev->node);
of_register_spi_devices(master, ofdev->dev.of_node);

return 0;
}
Expand Down

0 comments on commit f0773d2

Please sign in to comment.