summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYoshihiro Shimoda2016-04-18 09:53:38 +0200
committerFelipe Balbi2016-04-19 10:11:53 +0200
commit5096c4d3bfa75bdd23c78f799aabd08598afb48f (patch)
tree020605cbf59650b0f9fecbb8cbedf2b05510e2ca
parentusb: dwc3: make dwc3_debugfs_init return value be void (diff)
downloadkernel-qcow2-linux-5096c4d3bfa75bdd23c78f799aabd08598afb48f.tar.gz
kernel-qcow2-linux-5096c4d3bfa75bdd23c78f799aabd08598afb48f.tar.xz
kernel-qcow2-linux-5096c4d3bfa75bdd23c78f799aabd08598afb48f.zip
usb: gadget: udc: core: Fix argument of dev_err() in usb_gadget_map_request()
The argument of dev_err() in usb_gadget_map_request() should be dev instead of &gadget->dev. Fixes: 7ace8fc ("usb: gadget: udc: core: Fix argument of dma_map_single for IOMMU") Cc: <stable@vger.kernel.org> # v4.3+ Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
-rw-r--r--drivers/usb/gadget/udc/udc-core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/gadget/udc/udc-core.c b/drivers/usb/gadget/udc/udc-core.c
index e4e70e11d0f6..c6e76465065a 100644
--- a/drivers/usb/gadget/udc/udc-core.c
+++ b/drivers/usb/gadget/udc/udc-core.c
@@ -75,7 +75,7 @@ int usb_gadget_map_request(struct usb_gadget *gadget,
mapped = dma_map_sg(dev, req->sg, req->num_sgs,
is_in ? DMA_TO_DEVICE : DMA_FROM_DEVICE);
if (mapped == 0) {
- dev_err(&gadget->dev, "failed to map SGs\n");
+ dev_err(dev, "failed to map SGs\n");
return -EFAULT;
}