summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorFelipe Balbi <balbi@ti.com>2013-12-24 01:28:17 (GMT)
committerFelipe Balbi <balbi@ti.com>2013-12-24 01:28:17 (GMT)
commit4685d021f5cd04bd2682bd4db6dfa9f784fabf9f (patch)
tree860923081ac6a6b9ae2a8a06c1daced20721ff12 /drivers
parent27e9dcc924e92239625e670e269688ccbccbf777 (diff)
downloadlinux-4685d021f5cd04bd2682bd4db6dfa9f784fabf9f.tar.xz
usb: gadget: at91_udc: fix build warning
commit e117e742 (usb: gadget: add "maxpacket_limit" field to struct usb_ep) added a build warning to at91_udc when it passed the wrong argument to usb_ep_set_maxpacket_limit(). Fix this by passing correct argument. Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/usb/gadget/at91_udc.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/usb/gadget/at91_udc.c b/drivers/usb/gadget/at91_udc.c
index 0353b64..c3f49fd 100644
--- a/drivers/usb/gadget/at91_udc.c
+++ b/drivers/usb/gadget/at91_udc.c
@@ -1759,15 +1759,15 @@ static int at91udc_probe(struct platform_device *pdev)
/* newer chips have more FIFO memory than rm9200 */
if (cpu_is_at91sam9260() || cpu_is_at91sam9g20()) {
- usb_ep_set_maxpacket_limit(&udc->ep[0], 64);
- usb_ep_set_maxpacket_limit(&udc->ep[3], 64);
- usb_ep_set_maxpacket_limit(&udc->ep[4], 512);
- usb_ep_set_maxpacket_limit(&udc->ep[5], 512);
+ usb_ep_set_maxpacket_limit(&udc->ep[0].ep, 64);
+ usb_ep_set_maxpacket_limit(&udc->ep[3].ep, 64);
+ usb_ep_set_maxpacket_limit(&udc->ep[4].ep, 512);
+ usb_ep_set_maxpacket_limit(&udc->ep[5].ep, 512);
} else if (cpu_is_at91sam9261() || cpu_is_at91sam9g10()) {
- usb_ep_set_maxpacket_limit(&udc->ep[3], 64);
+ usb_ep_set_maxpacket_limit(&udc->ep[3].ep, 64);
} else if (cpu_is_at91sam9263()) {
- usb_ep_set_maxpacket_limit(&udc->ep[0], 64);
- usb_ep_set_maxpacket_limit(&udc->ep[3], 64);
+ usb_ep_set_maxpacket_limit(&udc->ep[0].ep, 64);
+ usb_ep_set_maxpacket_limit(&udc->ep[3].ep, 64);
}
udc->udp_baseaddr = ioremap(res->start, resource_size(res));