From: Lukasz Majewski Date: Tue, 17 Sep 2013 13:58:22 +0000 (+0200) Subject: usb:gadget:Remove redundant #includes for USB composite gadget and its functions X-Git-Tag: v2013.10-rc4~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=69d6cbe748ae13e6b728d2c28616a8c54b07f9c2;p=pandora-u-boot.git usb:gadget:Remove redundant #includes for USB composite gadget and its functions Only the requires error.h include. Hence, several includes of error.h at USB gadget functions are not needed. Moreover unnecessary malloc.h includes were also removed. Signed-off-by: Lukasz Majewski Cc: Marek Vasut --- diff --git a/common/cmd_dfu.c b/common/cmd_dfu.c index d3658cf7ee9..7ce92cec87f 100644 --- a/common/cmd_dfu.c +++ b/common/cmd_dfu.c @@ -9,10 +9,7 @@ */ #include -#include -#include #include -#include #include static int do_dfu(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) diff --git a/common/cmd_usb_mass_storage.c b/common/cmd_usb_mass_storage.c index 33a47150055..ccf7195946e 100644 --- a/common/cmd_usb_mass_storage.c +++ b/common/cmd_usb_mass_storage.c @@ -5,7 +5,6 @@ * SPDX-License-Identifier: GPL-2.0+ */ -#include #include #include #include diff --git a/drivers/usb/gadget/g_dnl.c b/drivers/usb/gadget/g_dnl.c index 19011bf9fc2..29d08a3a227 100644 --- a/drivers/usb/gadget/g_dnl.c +++ b/drivers/usb/gadget/g_dnl.c @@ -7,7 +7,6 @@ * SPDX-License-Identifier: GPL-2.0+ */ -#include #include #include diff --git a/include/linux/usb/gadget.h b/include/linux/usb/gadget.h index 220d0686001..a8a576316d3 100644 --- a/include/linux/usb/gadget.h +++ b/include/linux/usb/gadget.h @@ -18,6 +18,7 @@ #ifndef __LINUX_USB_GADGET_H #define __LINUX_USB_GADGET_H +#include #include struct usb_ep;