aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRob Rice <rrice@broadcom.com>2016-07-28 11:54:20 -0400
committerJassi Brar <jaswinder.singh@linaro.org>2016-07-28 11:57:31 -0400
commita68b216676e89fa959a23b583b56f9ce7df81b37 (patch)
tree27f9e57f360c842991ee9889b9542e306b3718db
parenta24532f8d17b7211dfb0259920edfcffc8306606 (diff)
mailbox: Fix format and type mismatches in Broadcom PDC driver
Fix format and type mismatches in a couple debug prints in the Broadcom PDC driver. Use %pad for dma_addr_t and %pa for resource_size_t. Signed-off-by: Rob Rice <rob.rice@broadcom.com> Reported-by: Fengguang Wu <fengguang.wu@intel.com> Signed-off-by: Jassi Brar <jaswinder.singh@linaro.org>
-rw-r--r--drivers/mailbox/bcm-pdc-mailbox.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/mailbox/bcm-pdc-mailbox.c b/drivers/mailbox/bcm-pdc-mailbox.c
index cc14a00babc3..cbe0c1ee4ba9 100644
--- a/drivers/mailbox/bcm-pdc-mailbox.c
+++ b/drivers/mailbox/bcm-pdc-mailbox.c
@@ -1028,9 +1028,9 @@ static int pdc_ring_init(struct pdc_state *pdcs, int ringset)
1028 goto fail_dealloc; 1028 goto fail_dealloc;
1029 } 1029 }
1030 1030
1031 dev_dbg(dev, " - base DMA addr of tx ring %#llx", tx.dmabase); 1031 dev_dbg(dev, " - base DMA addr of tx ring %pad", &tx.dmabase);
1032 dev_dbg(dev, " - base virtual addr of tx ring %p", tx.vbase); 1032 dev_dbg(dev, " - base virtual addr of tx ring %p", tx.vbase);
1033 dev_dbg(dev, " - base DMA addr of rx ring %#llx", rx.dmabase); 1033 dev_dbg(dev, " - base DMA addr of rx ring %pad", &rx.dmabase);
1034 dev_dbg(dev, " - base virtual addr of rx ring %p", rx.vbase); 1034 dev_dbg(dev, " - base virtual addr of rx ring %p", rx.vbase);
1035 1035
1036 /* lock after ring allocation to avoid scheduling while atomic */ 1036 /* lock after ring allocation to avoid scheduling while atomic */
@@ -1455,8 +1455,8 @@ static int pdc_probe(struct platform_device *pdev)
1455 err = -ENODEV; 1455 err = -ENODEV;
1456 goto cleanup_ring_pool; 1456 goto cleanup_ring_pool;
1457 } 1457 }
1458 dev_dbg(dev, "PDC register region res.start = %#llx, res.end = %#llx", 1458 dev_dbg(dev, "PDC register region res.start = %pa, res.end = %pa",
1459 pdc_regs->start, pdc_regs->end); 1459 &pdc_regs->start, &pdc_regs->end);
1460 1460
1461 pdcs->pdc_reg_vbase = devm_ioremap_resource(&pdev->dev, pdc_regs); 1461 pdcs->pdc_reg_vbase = devm_ioremap_resource(&pdev->dev, pdc_regs);
1462 if (IS_ERR(pdcs->pdc_reg_vbase)) { 1462 if (IS_ERR(pdcs->pdc_reg_vbase)) {