Commit 3c18c44d authored by Rob Herring's avatar Rob Herring Committed by Greg Kroah-Hartman

staging: fsl-mc: 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: Stuart Yoder <stuyoder@gmail.com>
Cc: Laurentiu Tudor <laurentiu.tudor@nxp.com>
Cc: devel@driverdev.osuosl.org
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent bea1e0f8
...@@ -757,8 +757,8 @@ static int fsl_mc_bus_probe(struct platform_device *pdev) ...@@ -757,8 +757,8 @@ static int fsl_mc_bus_probe(struct platform_device *pdev)
error = of_address_to_resource(pdev->dev.of_node, 0, &res); error = of_address_to_resource(pdev->dev.of_node, 0, &res);
if (error < 0) { if (error < 0) {
dev_err(&pdev->dev, dev_err(&pdev->dev,
"of_address_to_resource() failed for %s\n", "of_address_to_resource() failed for %pOF\n",
pdev->dev.of_node->full_name); pdev->dev.of_node);
return error; return error;
} }
......
...@@ -183,8 +183,8 @@ int fsl_mc_find_msi_domain(struct device *mc_platform_dev, ...@@ -183,8 +183,8 @@ int fsl_mc_find_msi_domain(struct device *mc_platform_dev,
msi_domain = of_msi_get_domain(mc_platform_dev, mc_of_node, msi_domain = of_msi_get_domain(mc_platform_dev, mc_of_node,
DOMAIN_BUS_FSL_MC_MSI); DOMAIN_BUS_FSL_MC_MSI);
if (!msi_domain) { if (!msi_domain) {
pr_err("Unable to find fsl-mc MSI domain for %s\n", pr_err("Unable to find fsl-mc MSI domain for %pOF\n",
mc_of_node->full_name); mc_of_node);
return -ENOENT; return -ENOENT;
} }
......
...@@ -79,8 +79,7 @@ int __init its_fsl_mc_msi_init(void) ...@@ -79,8 +79,7 @@ int __init its_fsl_mc_msi_init(void)
parent = irq_find_matching_host(np, DOMAIN_BUS_NEXUS); parent = irq_find_matching_host(np, DOMAIN_BUS_NEXUS);
if (!parent || !msi_get_domain_info(parent)) { if (!parent || !msi_get_domain_info(parent)) {
pr_err("%s: unable to locate ITS domain\n", pr_err("%pOF: unable to locate ITS domain\n", np);
np->full_name);
continue; continue;
} }
...@@ -89,15 +88,14 @@ int __init its_fsl_mc_msi_init(void) ...@@ -89,15 +88,14 @@ int __init its_fsl_mc_msi_init(void)
&its_fsl_mc_msi_domain_info, &its_fsl_mc_msi_domain_info,
parent); parent);
if (!mc_msi_domain) { if (!mc_msi_domain) {
pr_err("%s: unable to create fsl-mc domain\n", pr_err("%pOF: unable to create fsl-mc domain\n", np);
np->full_name);
continue; continue;
} }
WARN_ON(mc_msi_domain->host_data != WARN_ON(mc_msi_domain->host_data !=
&its_fsl_mc_msi_domain_info); &its_fsl_mc_msi_domain_info);
pr_info("fsl-mc MSI: %s domain created\n", np->full_name); pr_info("fsl-mc MSI: %pOF domain created\n", np);
} }
return 0; return 0;
......
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