diff options
author | Rob Herring <robh@kernel.org> | 2018-08-27 20:52:48 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-09-12 09:46:46 +0200 |
commit | 0952c57c8ff1e4e68de029f64dadd8d82027043b (patch) | |
tree | bfb3060df88782ffba4bb230a98037d00d75285a /drivers/uio | |
parent | ca6ac25cecf0e740d7cc8e03e0ebbf8acbeca3df (diff) | |
download | linux-stable-0952c57c8ff1e4e68de029f64dadd8d82027043b.tar.gz linux-stable-0952c57c8ff1e4e68de029f64dadd8d82027043b.tar.bz2 linux-stable-0952c57c8ff1e4e68de029f64dadd8d82027043b.zip |
uio: 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.
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Rob Herring <robh@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/uio')
-rw-r--r-- | drivers/uio/uio_fsl_elbc_gpcm.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/uio/uio_fsl_elbc_gpcm.c b/drivers/uio/uio_fsl_elbc_gpcm.c index bbc17effae5e..9cc37fe07d35 100644 --- a/drivers/uio/uio_fsl_elbc_gpcm.c +++ b/drivers/uio/uio_fsl_elbc_gpcm.c @@ -382,8 +382,7 @@ static int uio_fsl_elbc_gpcm_probe(struct platform_device *pdev) } /* set all UIO data */ - if (node->name) - info->mem[0].name = kstrdup(node->name, GFP_KERNEL); + info->mem[0].name = kasprintf(GFP_KERNEL, "%pOFn", node); info->mem[0].addr = res.start; info->mem[0].size = resource_size(&res); info->mem[0].memtype = UIO_MEM_PHYS; |