USB: fsl_usb2_udc: Get max ep number from DCCPARAMS register
authorLi Yang <leoli@freescale.com>
Thu, 7 Jun 2007 04:13:44 +0000 (21:13 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 12 Jul 2007 23:34:30 +0000 (16:34 -0700)
commit4365831dadfeeeb4c9f8c4944e48ccf78c27f845
treecf6eefc0d86403fb3a29b688407fb57cc4c9792b
parent37b5453dd4dafccec3fad636c28f1c3e3e14354f
USB: fsl_usb2_udc: Get max ep number from DCCPARAMS register

Currently the driver is expecting max ep number in platform
data which isn't passing this information.  This patch fix
the problem by reading it from DCCPARAMS(Device Controller
Capability Parameters) register.  The change also need some
reordering of the probe code.

Signed-off-by: Li Yang <leoli@freescale.com>
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/gadget/fsl_usb2_udc.c
drivers/usb/gadget/fsl_usb2_udc.h