BugLink: http://bugs.launchpad.net/bugs/608312
v2:
fix the building error on latest 2.6.35-rc kernel, since v1 was generated in
2.6.33 kernel.
v1:
usb_add_hcd was only called when we insmod the gadget class module or built-in
that gadget class driver. If musb is configured as OTG controller, we need to
insmod or built-in gadget class driver to make our Host mode fucntion works.
In our Ubuntu system, normally we compiled all the gadget class drivers as
modules. Then users can insmod the gadget modules as they want. But without the
gadget class driver running, we needs host function to support common USB
devices.
This patch fix this issue and tested on omap3 beagle board and Gumstix board.
Signed-off-by: Bryan Wu <bryan.wu@xxxxxxxxxxxxx>