mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git
synced 2026-11-03 08:04:58 +01:00
uio: Convert a few more users 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 <[email protected]> Signed-off-by: Rob Herring <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
1 parent
ef8ec6e1f9
commit
52e2dc2ce2
2 files changed
+4
-2
No files matched your search
@@ -163,7 +163,8 @@ static int uio_dmem_genirq_probe(struct platform_device *pdev)
|
||||
dev_err(&pdev->dev, "unable to kmalloc\n");
|
||||
goto bad2;
|
||||
}
|
||||
uioinfo->name = pdev->dev.of_node->name;
|
||||
uioinfo->name = devm_kasprintf(&pdev->dev, GFP_KERNEL, "%pOFn",
|
||||
pdev->dev.of_node);
|
||||
uioinfo->version = "devicetree";
|
||||
|
||||
/* Multiple IRQs are not supported */
|
||||
|
||||
@@ -118,7 +118,8 @@ static int uio_pdrv_genirq_probe(struct platform_device *pdev)
|
||||
dev_err(&pdev->dev, "unable to kmalloc\n");
|
||||
return -ENOMEM;
|
||||
}
|
||||
uioinfo->name = pdev->dev.of_node->name;
|
||||
uioinfo->name = devm_kasprintf(&pdev->dev, GFP_KERNEL, "%pOFn",
|
||||
pdev->dev.of_node);
|
||||
uioinfo->version = "devicetree";
|
||||
/* Multiple IRQs are not supported */
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user