of: Always use 'struct device.of_node' to get device node pointer.
The following structure elements duplicate the information in 'struct device.of_node' and so are being eliminated. This patch makes all readers of these elements use device.of_node instead. (struct of_device *)->node (struct dev_archdata *)->prom_node (sparc) (struct dev_archdata *)->of_node (powerpc & microblaze) Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
This commit is contained in:
@ -375,7 +375,7 @@ static int __devinit rackmeter_probe(struct macio_dev* mdev,
|
||||
pr_debug("rackmeter_probe()\n");
|
||||
|
||||
/* Get i2s-a node */
|
||||
while ((i2s = of_get_next_child(mdev->ofdev.node, i2s)) != NULL)
|
||||
while ((i2s = of_get_next_child(mdev->ofdev.dev.of_node, i2s)) != NULL)
|
||||
if (strcmp(i2s->name, "i2s-a") == 0)
|
||||
break;
|
||||
if (i2s == NULL) {
|
||||
@ -431,7 +431,7 @@ static int __devinit rackmeter_probe(struct macio_dev* mdev,
|
||||
of_address_to_resource(i2s, 1, &rdma)) {
|
||||
printk(KERN_ERR
|
||||
"rackmeter: found match but lacks resources: %s",
|
||||
mdev->ofdev.node->full_name);
|
||||
mdev->ofdev.dev.of_node->full_name);
|
||||
rc = -ENXIO;
|
||||
goto bail_free;
|
||||
}
|
||||
|
Reference in New Issue
Block a user