mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-14 07:44:21 +08:00
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>
This commit is contained in:
parent
ca6ac25cec
commit
0952c57c8f
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user