diff options
Diffstat (limited to 'drivers/usb/gadget/omap_udc.c')
-rw-r--r-- | drivers/usb/gadget/omap_udc.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/drivers/usb/gadget/omap_udc.c b/drivers/usb/gadget/omap_udc.c index 56277d24f041..95f7662376f1 100644 --- a/drivers/usb/gadget/omap_udc.c +++ b/drivers/usb/gadget/omap_udc.c | |||
@@ -163,7 +163,7 @@ static int omap_ep_enable(struct usb_ep *_ep, | |||
163 | || ep->bEndpointAddress != desc->bEndpointAddress | 163 | || ep->bEndpointAddress != desc->bEndpointAddress |
164 | || ep->maxpacket < le16_to_cpu | 164 | || ep->maxpacket < le16_to_cpu |
165 | (desc->wMaxPacketSize)) { | 165 | (desc->wMaxPacketSize)) { |
166 | DBG("%s, bad ep or descriptor\n", __FUNCTION__); | 166 | DBG("%s, bad ep or descriptor\n", __func__); |
167 | return -EINVAL; | 167 | return -EINVAL; |
168 | } | 168 | } |
169 | maxp = le16_to_cpu (desc->wMaxPacketSize); | 169 | maxp = le16_to_cpu (desc->wMaxPacketSize); |
@@ -171,7 +171,7 @@ static int omap_ep_enable(struct usb_ep *_ep, | |||
171 | && maxp != ep->maxpacket) | 171 | && maxp != ep->maxpacket) |
172 | || le16_to_cpu(desc->wMaxPacketSize) > ep->maxpacket | 172 | || le16_to_cpu(desc->wMaxPacketSize) > ep->maxpacket |
173 | || !desc->wMaxPacketSize) { | 173 | || !desc->wMaxPacketSize) { |
174 | DBG("%s, bad %s maxpacket\n", __FUNCTION__, _ep->name); | 174 | DBG("%s, bad %s maxpacket\n", __func__, _ep->name); |
175 | return -ERANGE; | 175 | return -ERANGE; |
176 | } | 176 | } |
177 | 177 | ||
@@ -194,13 +194,13 @@ static int omap_ep_enable(struct usb_ep *_ep, | |||
194 | if (ep->bmAttributes != desc->bmAttributes | 194 | if (ep->bmAttributes != desc->bmAttributes |
195 | && ep->bmAttributes != USB_ENDPOINT_XFER_BULK | 195 | && ep->bmAttributes != USB_ENDPOINT_XFER_BULK |
196 | && desc->bmAttributes != USB_ENDPOINT_XFER_INT) { | 196 | && desc->bmAttributes != USB_ENDPOINT_XFER_INT) { |
197 | DBG("%s, %s type mismatch\n", __FUNCTION__, _ep->name); | 197 | DBG("%s, %s type mismatch\n", __func__, _ep->name); |
198 | return -EINVAL; | 198 | return -EINVAL; |
199 | } | 199 | } |
200 | 200 | ||
201 | udc = ep->udc; | 201 | udc = ep->udc; |
202 | if (!udc->driver || udc->gadget.speed == USB_SPEED_UNKNOWN) { | 202 | if (!udc->driver || udc->gadget.speed == USB_SPEED_UNKNOWN) { |
203 | DBG("%s, bogus device state\n", __FUNCTION__); | 203 | DBG("%s, bogus device state\n", __func__); |
204 | return -ESHUTDOWN; | 204 | return -ESHUTDOWN; |
205 | } | 205 | } |
206 | 206 | ||
@@ -249,7 +249,7 @@ static int omap_ep_disable(struct usb_ep *_ep) | |||
249 | unsigned long flags; | 249 | unsigned long flags; |
250 | 250 | ||
251 | if (!_ep || !ep->desc) { | 251 | if (!_ep || !ep->desc) { |
252 | DBG("%s, %s not enabled\n", __FUNCTION__, | 252 | DBG("%s, %s not enabled\n", __func__, |
253 | _ep ? ep->ep.name : NULL); | 253 | _ep ? ep->ep.name : NULL); |
254 | return -EINVAL; | 254 | return -EINVAL; |
255 | } | 255 | } |
@@ -936,11 +936,11 @@ omap_ep_queue(struct usb_ep *_ep, struct usb_request *_req, gfp_t gfp_flags) | |||
936 | /* catch various bogus parameters */ | 936 | /* catch various bogus parameters */ |
937 | if (!_req || !req->req.complete || !req->req.buf | 937 | if (!_req || !req->req.complete || !req->req.buf |
938 | || !list_empty(&req->queue)) { | 938 | || !list_empty(&req->queue)) { |
939 | DBG("%s, bad params\n", __FUNCTION__); | 939 | DBG("%s, bad params\n", __func__); |
940 | return -EINVAL; | 940 | return -EINVAL; |
941 | } | 941 | } |
942 | if (!_ep || (!ep->desc && ep->bEndpointAddress)) { | 942 | if (!_ep || (!ep->desc && ep->bEndpointAddress)) { |
943 | DBG("%s, bad ep\n", __FUNCTION__); | 943 | DBG("%s, bad ep\n", __func__); |
944 | return -EINVAL; | 944 | return -EINVAL; |
945 | } | 945 | } |
946 | if (ep->bmAttributes == USB_ENDPOINT_XFER_ISOC) { | 946 | if (ep->bmAttributes == USB_ENDPOINT_XFER_ISOC) { |
@@ -959,7 +959,7 @@ omap_ep_queue(struct usb_ep *_ep, struct usb_request *_req, gfp_t gfp_flags) | |||
959 | && (ep->bEndpointAddress & USB_DIR_IN) == 0 | 959 | && (ep->bEndpointAddress & USB_DIR_IN) == 0 |
960 | && !cpu_class_is_omap2() | 960 | && !cpu_class_is_omap2() |
961 | && (req->req.length % ep->ep.maxpacket) != 0) { | 961 | && (req->req.length % ep->ep.maxpacket) != 0) { |
962 | DBG("%s, no partial packet OUT reads\n", __FUNCTION__); | 962 | DBG("%s, no partial packet OUT reads\n", __func__); |
963 | return -EMSGSIZE; | 963 | return -EMSGSIZE; |
964 | } | 964 | } |
965 | 965 | ||