usb: musb: ux500: move channel number knowledge into the driver
authorLee Jones <lee.jones@linaro.org>
Wed, 15 May 2013 09:51:43 +0000 (10:51 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 4 Jun 2013 09:12:02 +0000 (11:12 +0200)
commitbe2dbb09a014cba5691c8483ad2d0747d3eeb514
treefb613c0e895caa3950c4ac61fc765589f946a697
parent95e4bf98520c9a92cd1b87d12c89e8c60c5fe2ca
usb: musb: ux500: move channel number knowledge into the driver

For all ux500 based platforms the maximum number of end-points are used.
Move this knowledge into the driver so we can relinquish the burden from
platform data. This also removes quite a bit of complexity from the driver
and will aid us when we come to enable the driver for Device Tree.

Cc: linux-usb@vger.kernel.org
Acked-by: Felipe Balbi <balbi@ti.com>
Acked-by: Fabio Baltieri <fabio.baltieri@linaro.org>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
arch/arm/mach-ux500/usb.c
drivers/usb/musb/ux500_dma.c
include/linux/platform_data/usb-musb-ux500.h