Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

usb: gadget: lpc32xxx_udc: clean up and sort include directives out

Remove mach/irq.h from the list of included headers, there is no
compilation dependency on this include file, and the change is needed
to prevent a compilation failure, when mach/irq.h is removed.

Additionally remove other unneeded includes and sort out their order.

Signed-off-by: Vladimir Zapolskiy <vz@mleia.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>

authored by

Vladimir Zapolskiy and committed by
Felipe Balbi
2de59c09 46a01427

+12 -25
+12 -25
drivers/usb/gadget/udc/lpc32xx_udc.c
··· 28 28 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 29 29 */ 30 30 31 - #include <linux/kernel.h> 32 - #include <linux/module.h> 33 - #include <linux/platform_device.h> 34 - #include <linux/delay.h> 35 - #include <linux/ioport.h> 36 - #include <linux/slab.h> 37 - #include <linux/errno.h> 38 - #include <linux/init.h> 39 - #include <linux/list.h> 40 - #include <linux/interrupt.h> 41 - #include <linux/proc_fs.h> 42 31 #include <linux/clk.h> 43 - #include <linux/usb/ch9.h> 44 - #include <linux/usb/gadget.h> 45 - #include <linux/i2c.h> 46 - #include <linux/kthread.h> 47 - #include <linux/freezer.h> 32 + #include <linux/delay.h> 48 33 #include <linux/dma-mapping.h> 49 34 #include <linux/dmapool.h> 50 - #include <linux/workqueue.h> 35 + #include <linux/i2c.h> 36 + #include <linux/interrupt.h> 37 + #include <linux/module.h> 51 38 #include <linux/of.h> 39 + #include <linux/platform_device.h> 40 + #include <linux/proc_fs.h> 41 + #include <linux/slab.h> 42 + #include <linux/usb/ch9.h> 43 + #include <linux/usb/gadget.h> 52 44 #include <linux/usb/isp1301.h> 53 45 54 - #include <asm/byteorder.h> 55 - #include <mach/hardware.h> 56 - #include <linux/io.h> 57 - #include <asm/irq.h> 58 - 59 - #include <mach/platform.h> 60 - #include <mach/irqs.h> 61 - #include <mach/board.h> 62 46 #ifdef CONFIG_USB_GADGET_DEBUG_FILES 63 47 #include <linux/debugfs.h> 64 48 #include <linux/seq_file.h> 65 49 #endif 50 + 51 + #include <mach/hardware.h> 52 + #include <mach/platform.h> 66 53 67 54 /* 68 55 * USB device configuration structure