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:
@@ -291,8 +291,9 @@ static int ehca_sense_attributes(struct ehca_shca *shca)
|
||||
};
|
||||
|
||||
ehca_gen_dbg("Probing adapter %s...",
|
||||
shca->ofdev->node->full_name);
|
||||
loc_code = of_get_property(shca->ofdev->node, "ibm,loc-code", NULL);
|
||||
shca->ofdev->dev.of_node->full_name);
|
||||
loc_code = of_get_property(shca->ofdev->dev.of_node, "ibm,loc-code",
|
||||
NULL);
|
||||
if (loc_code)
|
||||
ehca_gen_dbg(" ... location lode=%s", loc_code);
|
||||
|
||||
@@ -720,16 +721,16 @@ static int __devinit ehca_probe(struct of_device *dev,
|
||||
int ret, i, eq_size;
|
||||
unsigned long flags;
|
||||
|
||||
handle = of_get_property(dev->node, "ibm,hca-handle", NULL);
|
||||
handle = of_get_property(dev->dev.of_node, "ibm,hca-handle", NULL);
|
||||
if (!handle) {
|
||||
ehca_gen_err("Cannot get eHCA handle for adapter: %s.",
|
||||
dev->node->full_name);
|
||||
dev->dev.of_node->full_name);
|
||||
return -ENODEV;
|
||||
}
|
||||
|
||||
if (!(*handle)) {
|
||||
ehca_gen_err("Wrong eHCA handle for adapter: %s.",
|
||||
dev->node->full_name);
|
||||
dev->dev.of_node->full_name);
|
||||
return -ENODEV;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user