Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dmaengine: Convert to using %pOF instead of full_name

Now that we have a custom printf format specifier, convert users of
full_name to use %pOF instead. This is preparation to remove storing
of the full path string for each node.

Signed-off-by: Rob Herring <robh@kernel.org>
Cc: Vinod Koul <vinod.koul@intel.com>
Cc: Dan Williams <dan.j.williams@intel.com>
Cc: dmaengine@vger.kernel.org
Signed-off-by: Vinod Koul <vinod.koul@intel.com>

authored by

Rob Herring and committed by
Vinod Koul
c6c93048 5771a8c0

+10 -12
+4 -4
drivers/dma/of-dma.c
··· 38 38 if (ofdma->of_node == dma_spec->np) 39 39 return ofdma; 40 40 41 - pr_debug("%s: can't find DMA controller %s\n", __func__, 42 - dma_spec->np->full_name); 41 + pr_debug("%s: can't find DMA controller %pOF\n", __func__, 42 + dma_spec->np); 43 43 44 44 return NULL; 45 45 } ··· 255 255 256 256 count = of_property_count_strings(np, "dma-names"); 257 257 if (count < 0) { 258 - pr_err("%s: dma-names property of node '%s' missing or empty\n", 259 - __func__, np->full_name); 258 + pr_err("%s: dma-names property of node '%pOF' missing or empty\n", 259 + __func__, np); 260 260 return ERR_PTR(-ENODEV); 261 261 } 262 262
+6 -8
drivers/dma/ppc4xx/adma.c
··· 4040 4040 /* it is DMA0 or DMA1 */ 4041 4041 idx = of_get_property(np, "cell-index", &len); 4042 4042 if (!idx || (len != sizeof(u32))) { 4043 - dev_err(&ofdev->dev, "Device node %s has missing " 4043 + dev_err(&ofdev->dev, "Device node %pOF has missing " 4044 4044 "or invalid cell-index property\n", 4045 - np->full_name); 4045 + np); 4046 4046 return -EINVAL; 4047 4047 } 4048 4048 id = *idx; ··· 4448 4448 dcr_base = dcr_resource_start(np, 0); 4449 4449 dcr_len = dcr_resource_len(np, 0); 4450 4450 if (!dcr_base && !dcr_len) { 4451 - pr_err("%s: can't get DCR registers base/len!\n", 4452 - np->full_name); 4451 + pr_err("%pOF: can't get DCR registers base/len!\n", np); 4453 4452 of_node_put(np); 4454 4453 iounmap(i2o_reg); 4455 4454 return -ENODEV; ··· 4456 4457 4457 4458 i2o_dcr_host = dcr_map(np, dcr_base, dcr_len); 4458 4459 if (!DCR_MAP_OK(i2o_dcr_host)) { 4459 - pr_err("%s: failed to map DCRs!\n", np->full_name); 4460 + pr_err("%pOF: failed to map DCRs!\n", np); 4460 4461 of_node_put(np); 4461 4462 iounmap(i2o_reg); 4462 4463 return -ENODEV; ··· 4517 4518 dcr_base = dcr_resource_start(np, 0); 4518 4519 dcr_len = dcr_resource_len(np, 0); 4519 4520 if (!dcr_base && !dcr_len) { 4520 - pr_err("%s: can't get DCR registers base/len!\n", 4521 - np->full_name); 4521 + pr_err("%pOF: can't get DCR registers base/len!\n", np); 4522 4522 ret = -ENODEV; 4523 4523 goto out_mq; 4524 4524 } 4525 4525 4526 4526 ppc440spe_mq_dcr_host = dcr_map(np, dcr_base, dcr_len); 4527 4527 if (!DCR_MAP_OK(ppc440spe_mq_dcr_host)) { 4528 - pr_err("%s: failed to map DCRs!\n", np->full_name); 4528 + pr_err("%pOF: failed to map DCRs!\n", np); 4529 4529 ret = -ENODEV; 4530 4530 goto out_mq; 4531 4531 }