diff options
author | 2018-08-27 19:54:19 -0500 | |
---|---|---|
committer | 2018-10-04 14:16:01 -0500 | |
commit | 75afbfc1156c8f7de5717a8d278a4da0d98a8532 (patch) | |
tree | 8b27627fe8229be0f0a1a87f025f17edd0cf574d /drivers/firmware | |
parent | devfreq: Convert to using %pOFn instead of device_node.name (diff) | |
download | linux-75afbfc1156c8f7de5717a8d278a4da0d98a8532.tar.gz linux-75afbfc1156c8f7de5717a8d278a4da0d98a8532.tar.bz2 linux-75afbfc1156c8f7de5717a8d278a4da0d98a8532.zip |
firmware: Convert to using %pOFn instead of device_node.name
In preparation to remove the node name pointer from struct device_node,
convert printf users to use the %pOFn format specifier.
Acked-by: Sudeep Holla <sudeep.holla@arm.com>
Signed-off-by: Rob Herring <robh@kernel.org>
Diffstat (limited to 'drivers/firmware')
-rw-r--r-- | drivers/firmware/scpi_pm_domain.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/firmware/scpi_pm_domain.c b/drivers/firmware/scpi_pm_domain.c index f395dec27113..390aa13391e4 100644 --- a/drivers/firmware/scpi_pm_domain.c +++ b/drivers/firmware/scpi_pm_domain.c @@ -121,7 +121,7 @@ static int scpi_pm_domain_probe(struct platform_device *pdev) scpi_pd->domain = i; scpi_pd->ops = scpi_ops; - sprintf(scpi_pd->name, "%s.%d", np->name, i); + sprintf(scpi_pd->name, "%pOFn.%d", np, i); scpi_pd->genpd.name = scpi_pd->name; scpi_pd->genpd.power_off = scpi_pd_power_off; scpi_pd->genpd.power_on = scpi_pd_power_on; |