From: Bo Shen Date: Wed, 19 Feb 2014 02:07:43 +0000 (+0800) Subject: usb: gadget: at91: fix the number of endpoint parameter X-Git-Tag: v3.15-rc1~137^2~25^2~56 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aa7be0f8f7fbd446c7cd5352480d0d10d78f742b;p=pandora-kernel.git usb: gadget: at91: fix the number of endpoint parameter In sama5d3 SoC, there are 16 endpoints, which is different with earlier SoCs (only have 7 endpoints). The USBA_NR_ENDPOINTS macro is not suitable for sama5d3. So, get the endpoints number through the udc->num_ep, which get from platform data for non-dt kernel, or parse from dt node. Acked-by: Nicolas Ferre Signed-off-by: Bo Shen Signed-off-by: Felipe Balbi --- Reading git-diff-tree failed