diff options
author | Felipe Balbi <balbi@ti.com> | 2011-07-04 04:16:06 -0400 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2011-07-05 09:41:13 -0400 |
commit | 7b30d19a5736b930c39cd7212ae9409ac0df525d (patch) | |
tree | cfe0b5d2c5a9462d140c9dc74e2ee75bb40cd32e /drivers/usb | |
parent | b9af9ea45a8dc1c3e7a98319bac90199807cc258 (diff) |
usb: gadget: net2272: fix compile warnings
This patch fixes the following compile warnings:
drivers/usb/gadget/net2272.c: In function ‘net2272_kick_dma’:
drivers/usb/gadget/net2272.c:740:2: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 6 has type ‘dma_addr_t’ [-Wformat]
drivers/usb/gadget/net2272.c: In function ‘net2272_queue’:
drivers/usb/gadget/net2272.c:859:2: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 8 has type ‘dma_addr_t’ [-Wformat]
Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb')
-rw-r--r-- | drivers/usb/gadget/net2272.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/usb/gadget/net2272.c b/drivers/usb/gadget/net2272.c index 6065bdfd83bb..7c7b0e120d88 100644 --- a/drivers/usb/gadget/net2272.c +++ b/drivers/usb/gadget/net2272.c | |||
@@ -737,8 +737,8 @@ net2272_kick_dma(struct net2272_ep *ep, struct net2272_request *req) | |||
737 | if (req->req.length & 1) | 737 | if (req->req.length & 1) |
738 | return -EINVAL; | 738 | return -EINVAL; |
739 | 739 | ||
740 | dev_vdbg(ep->dev->dev, "kick_dma %s req %p dma %08x\n", | 740 | dev_vdbg(ep->dev->dev, "kick_dma %s req %p dma %08llx\n", |
741 | ep->ep.name, req, req->req.dma); | 741 | ep->ep.name, req, (unsigned long long) req->req.dma); |
742 | 742 | ||
743 | net2272_ep_write(ep, EP_RSPSET, 1 << ALT_NAK_OUT_PACKETS); | 743 | net2272_ep_write(ep, EP_RSPSET, 1 << ALT_NAK_OUT_PACKETS); |
744 | 744 | ||
@@ -856,9 +856,9 @@ net2272_queue(struct usb_ep *_ep, struct usb_request *_req, gfp_t gfp_flags) | |||
856 | req->mapped = 1; | 856 | req->mapped = 1; |
857 | } | 857 | } |
858 | 858 | ||
859 | dev_vdbg(dev->dev, "%s queue req %p, len %d buf %p dma %08x %s\n", | 859 | dev_vdbg(dev->dev, "%s queue req %p, len %d buf %p dma %08llx %s\n", |
860 | _ep->name, _req, _req->length, _req->buf, | 860 | _ep->name, _req, _req->length, _req->buf, |
861 | _req->dma, _req->zero ? "zero" : "!zero"); | 861 | (unsigned long long) _req->dma, _req->zero ? "zero" : "!zero"); |
862 | 862 | ||
863 | spin_lock_irqsave(&dev->lock, flags); | 863 | spin_lock_irqsave(&dev->lock, flags); |
864 | 864 | ||