mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 19:30:30 +09:00
ANDROID: usb: gadget: configfs: Move CONFIGFS_UEVENT #endif
Move the CONFIG_USB_CONFIGFS_UEVENT #endif to cover the
configfs_composite_reset() function to prevent an unused function
warning when this config is unset.
Fixes: 2db4f2a2a8 ("FROMGIT: usb: gadget: configfs: Add a specific configFS reset callback")
Signed-off-by: J. Avila <elavila@google.com>
Change-Id: I61adc4516dc2574cc7d7a02bcc3fa7d86b8efd1d
This commit is contained in:
@@ -1645,8 +1645,6 @@ static void configfs_composite_disconnect(struct usb_gadget *gadget)
|
||||
spin_unlock_irqrestore(&gi->spinlock, flags);
|
||||
}
|
||||
|
||||
#endif // CONFIG_USB_CONFIGFS_UEVENT
|
||||
|
||||
static void configfs_composite_reset(struct usb_gadget *gadget)
|
||||
{
|
||||
struct usb_composite_dev *cdev;
|
||||
@@ -1669,6 +1667,8 @@ static void configfs_composite_reset(struct usb_gadget *gadget)
|
||||
spin_unlock_irqrestore(&gi->spinlock, flags);
|
||||
}
|
||||
|
||||
#endif // CONFIG_USB_CONFIGFS_UEVENT
|
||||
|
||||
static void configfs_composite_suspend(struct usb_gadget *gadget)
|
||||
{
|
||||
struct usb_composite_dev *cdev;
|
||||
|
||||
Reference in New Issue
Block a user