Commit 34d0eb50 authored by Rob Herring's avatar Rob Herring Committed by Greg Kroah-Hartman

misc: Convert to using %pOF instead of full_name

Now that we have a custom printf format specifier, convert users of
full_name to use %pOF instead. This is preparation to remove storing
of the full path string for each node.
Signed-off-by: default avatarRob Herring <robh@kernel.org>
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 579e9a30
...@@ -1132,8 +1132,8 @@ static void idt_get_ofdata(struct idt_89hpesx_dev *pdev) ...@@ -1132,8 +1132,8 @@ static void idt_get_ofdata(struct idt_89hpesx_dev *pdev)
for_each_available_child_of_node(node, child) { for_each_available_child_of_node(node, child) {
ee_id = idt_ee_match_id(child); ee_id = idt_ee_match_id(child);
if (IS_ERR_OR_NULL(ee_id)) { if (IS_ERR_OR_NULL(ee_id)) {
dev_warn(dev, "Skip unsupported child node %s", dev_warn(dev, "Skip unsupported child node %pOF",
child->full_name); child);
continue; continue;
} else } else
break; break;
...@@ -1151,8 +1151,8 @@ static void idt_get_ofdata(struct idt_89hpesx_dev *pdev) ...@@ -1151,8 +1151,8 @@ static void idt_get_ofdata(struct idt_89hpesx_dev *pdev)
/* Get custom EEPROM address from 'reg' attribute */ /* Get custom EEPROM address from 'reg' attribute */
addr_be = of_get_property(child, "reg", &len); addr_be = of_get_property(child, "reg", &len);
if (!addr_be || (len < sizeof(*addr_be))) { if (!addr_be || (len < sizeof(*addr_be))) {
dev_warn(dev, "No reg on %s, use default address %d", dev_warn(dev, "No reg on %pOF, use default address %d",
child->full_name, EEPROM_DEF_ADDR); child, EEPROM_DEF_ADDR);
pdev->inieecmd = 0; pdev->inieecmd = 0;
pdev->eeaddr = EEPROM_DEF_ADDR << 1; pdev->eeaddr = EEPROM_DEF_ADDR << 1;
} else { } else {
......
...@@ -196,15 +196,15 @@ static int sram_reserve_regions(struct sram_dev *sram, struct resource *res) ...@@ -196,15 +196,15 @@ static int sram_reserve_regions(struct sram_dev *sram, struct resource *res)
ret = of_address_to_resource(child, 0, &child_res); ret = of_address_to_resource(child, 0, &child_res);
if (ret < 0) { if (ret < 0) {
dev_err(sram->dev, dev_err(sram->dev,
"could not get address for node %s\n", "could not get address for node %pOF\n",
child->full_name); child);
goto err_chunks; goto err_chunks;
} }
if (child_res.start < res->start || child_res.end > res->end) { if (child_res.start < res->start || child_res.end > res->end) {
dev_err(sram->dev, dev_err(sram->dev,
"reserved block %s outside the sram area\n", "reserved block %pOF outside the sram area\n",
child->full_name); child);
ret = -EINVAL; ret = -EINVAL;
goto err_chunks; goto err_chunks;
} }
...@@ -230,8 +230,8 @@ static int sram_reserve_regions(struct sram_dev *sram, struct resource *res) ...@@ -230,8 +230,8 @@ static int sram_reserve_regions(struct sram_dev *sram, struct resource *res)
ret = of_property_read_string(child, "label", &label); ret = of_property_read_string(child, "label", &label);
if (ret && ret != -EINVAL) { if (ret && ret != -EINVAL) {
dev_err(sram->dev, dev_err(sram->dev,
"%s has invalid label name\n", "%pOF has invalid label name\n",
child->full_name); child);
goto err_chunks; goto err_chunks;
} }
if (!label) if (!label)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment