aboutsummaryrefslogtreecommitdiff
path: root/drivers/uio/uio_fsl_elbc_gpcm.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/uio/uio_fsl_elbc_gpcm.c')
-rw-r--r--drivers/uio/uio_fsl_elbc_gpcm.c3
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;