usb: gadget: Weak board_usb_init/cleanup definitions in USB download gadget code
Weak versions of board_usb_init and board_usb_cleanup are defined in common USB host code, but it is also used for USB device gadgets, so we also need a weak definition of it when there is no USB host enabled. Both weak definitions do not conflict. Signed-off-by: Paul Kocialkowski <contact@paulk.fr> Tested-by: Lukasz Majewski <l.majewski@samsung.com> Test HW: Odroid_XU3 (Exynos5422), trats (Exynos4210)
This commit is contained in:
parent
8d2f0039f0
commit
99fc2221a0
1 changed files with 13 additions and 0 deletions
|
@ -12,6 +12,7 @@
|
|||
|
||||
#include <mmc.h>
|
||||
#include <part.h>
|
||||
#include <usb.h>
|
||||
|
||||
#include <g_dnl.h>
|
||||
#include <usb_mass_storage.h>
|
||||
|
@ -147,6 +148,18 @@ static int g_dnl_config_register(struct usb_composite_dev *cdev)
|
|||
return usb_add_config(cdev, config);
|
||||
}
|
||||
|
||||
__weak
|
||||
int board_usb_init(int index, enum usb_init_type init)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
__weak
|
||||
int board_usb_cleanup(int index, enum usb_init_type init)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
__weak
|
||||
int g_dnl_bind_fixup(struct usb_device_descriptor *dev, const char *name)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue