Commit 8b3bc14f authored by Jingoo Han's avatar Jingoo Han Committed by Felipe Balbi

usb: gadget: s3c-hsotg: use %pad for dma_addr_t

Use %pad for dma_addr_t to avoid the following build warnings
in printks.

drivers/usb/gadget/s3c-hsotg.c: In function 's3c_hsotg_start_req'
drivers/usb/gadget/s3c-hsotg.c:722:3: warning: format '%x' expects argument of type 'unsigned int' but argument 6 has type
'dma_addr_t' [-Wformat]
drivers/usb/gadget/s3c-hsotg.c:792:3: warning: format '%x' expects argument of type 'unsigned int' but argument 5 has type
'dma_addr_t' [-Wformat]
Signed-off-by: default avatarJingoo Han <jg1.han@samsung.com>
Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
parent 1a7ed5be
...@@ -720,8 +720,8 @@ static void s3c_hsotg_start_req(struct s3c_hsotg *hsotg, ...@@ -720,8 +720,8 @@ static void s3c_hsotg_start_req(struct s3c_hsotg *hsotg,
ureq->length, ureq->actual); ureq->length, ureq->actual);
if (0) if (0)
dev_dbg(hsotg->dev, dev_dbg(hsotg->dev,
"REQ buf %p len %d dma 0x%08llx noi=%d zp=%d snok=%d\n", "REQ buf %p len %d dma 0x%pad noi=%d zp=%d snok=%d\n",
ureq->buf, length, (unsigned long long)ureq->dma, ureq->buf, length, &ureq->dma,
ureq->no_interrupt, ureq->zero, ureq->short_not_ok); ureq->no_interrupt, ureq->zero, ureq->short_not_ok);
maxreq = get_ep_limit(hs_ep); maxreq = get_ep_limit(hs_ep);
...@@ -789,8 +789,8 @@ static void s3c_hsotg_start_req(struct s3c_hsotg *hsotg, ...@@ -789,8 +789,8 @@ static void s3c_hsotg_start_req(struct s3c_hsotg *hsotg,
dma_reg = dir_in ? DIEPDMA(index) : DOEPDMA(index); dma_reg = dir_in ? DIEPDMA(index) : DOEPDMA(index);
writel(ureq->dma, hsotg->regs + dma_reg); writel(ureq->dma, hsotg->regs + dma_reg);
dev_dbg(hsotg->dev, "%s: 0x%08llx => 0x%08x\n", dev_dbg(hsotg->dev, "%s: 0x%pad => 0x%08x\n",
__func__, (unsigned long long)ureq->dma, dma_reg); __func__, &ureq->dma, dma_reg);
} }
ctrl |= DxEPCTL_EPEna; /* ensure ep enabled */ ctrl |= DxEPCTL_EPEna; /* ensure ep enabled */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment