diff options
author | Jingoo Han | 2013-05-11 14:14:00 +0200 |
---|---|---|
committer | Felipe Balbi | 2013-05-15 16:33:09 +0200 |
commit | 17d966a325a7ccfb5970839fb5b2ebb9e3909a6f (patch) | |
tree | 34e8c878ea0183eacf9b5587b57d81fe729b1410 /drivers/usb | |
parent | usb: phy: Fix NULL pointer exception during usb_get_phy (diff) | |
download | kernel-qcow2-linux-17d966a325a7ccfb5970839fb5b2ebb9e3909a6f.tar.gz kernel-qcow2-linux-17d966a325a7ccfb5970839fb5b2ebb9e3909a6f.tar.xz kernel-qcow2-linux-17d966a325a7ccfb5970839fb5b2ebb9e3909a6f.zip |
usb: gadget: s3c-hsotg: pass 'struct usb_request *' to usb_gadget_unmap_request()
'struct usb_request *' should be passed to usb_gadget_unmap_request(),
as the second argument; however, 'struct s3c_hsotg_req *' is used.
Fixed build warnings as below:
drivers/usb/gadget/s3c-hsotg.c: In function 's3c_hsotg_unmap_dma':
drivers/usb/gadget/s3c-hsotg.c:440:2: warning: passing argument 2 of 'usb_gadget_unmap_request' from incompatible pointer type
[enabled by default]
include/linux/usb/gadget.h:961:13: note: expected 'struct usb_request *' but argument is of type 'struct s3c_hsotg_req *'
drivers/usb/gadget/s3c-hsotg.c:434:22: warning: unused variable 'req' [-Wunused-variable]
Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb')
-rw-r--r-- | drivers/usb/gadget/s3c-hsotg.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/gadget/s3c-hsotg.c b/drivers/usb/gadget/s3c-hsotg.c index a3cdc32115d5..af22f24046b2 100644 --- a/drivers/usb/gadget/s3c-hsotg.c +++ b/drivers/usb/gadget/s3c-hsotg.c @@ -437,7 +437,7 @@ static void s3c_hsotg_unmap_dma(struct s3c_hsotg *hsotg, if (hs_req->req.length == 0) return; - usb_gadget_unmap_request(&hsotg->gadget, hs_req, hs_ep->dir_in); + usb_gadget_unmap_request(&hsotg->gadget, req, hs_ep->dir_in); } /** |