usb: gadget: make usb functions to load before gadget driver
authorKishon Vijay Abraham I <kishon@ti.com>
Wed, 6 Feb 2013 08:50:34 +0000 (14:20 +0530)
committerFelipe Balbi <balbi@ti.com>
Mon, 4 Mar 2013 07:33:26 +0000 (09:33 +0200)
commit56aa45adcc5b793369e535a4b7177f1c7314b577
tree99f88a2c25909208cf1472bc1a6225c8992fd0c1
parentfe2a4297b40c0ccee0e2276b06fb0afe1fc63da4
usb: gadget: make usb functions to load before gadget driver

The current ordering in makefile makes gadget
drivers be loaded before usb functions which
causes usb_get_function_instance() to fail when
gadget modules are statically linked to the
kernel binary.

Changed the ordering here so that USB functions
are loaded before gadget drivers.

Note that this is only a temporary solution and
a more robust fix is needed in the long run.

Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/gadget/Makefile