[Blackfin] arch: fix build fails only include header files when enabled
authorMike Frysinger <vapier.adi@gmail.com>
Fri, 8 Feb 2008 17:49:23 +0000 (01:49 +0800)
committerBryan Wu <bryan.wu@analog.com>
Fri, 8 Feb 2008 17:49:23 +0000 (01:49 +0800)
Signed-off-by: Mike Frysinger <vapier.adi@gmail.com>
Signed-off-by: Bryan Wu <bryan.wu@analog.com>
arch/blackfin/mach-bf527/boards/ezkit.c
arch/blackfin/mach-bf533/boards/ezkit.c
arch/blackfin/mach-bf548/boards/ezkit.c

index b0c17afd4b76e3be5feb77b9e5d041692ef28f44..337515fba612e43a3b8f23aaf1822a1196f911fa 100644 (file)
@@ -41,7 +41,9 @@
 #include <linux/irq.h>
 #include <linux/interrupt.h>
 #include <linux/usb/sl811.h>
+#if defined(CONFIG_USB_MUSB_HDRC) || defined(CONFIG_USB_MUSB_HDRC_MODULE)
 #include <linux/usb/musb.h>
+#endif
 #include <asm/cplb.h>
 #include <asm/dma.h>
 #include <asm/bfin5xx_spi.h>
index 4a42d624e558b5611f0de9af3f2bf89d2ee85a63..2b09aa39f565274725c770b53ab3abe60513b425 100644 (file)
@@ -34,7 +34,9 @@
 #include <linux/mtd/partitions.h>
 #include <linux/spi/spi.h>
 #include <linux/spi/flash.h>
+#if defined(CONFIG_USB_ISP1362_HCD) || defined(CONFIG_USB_ISP1362_HCD_MODULE)
 #include <linux/usb/isp1362.h>
+#endif
 #include <linux/ata_platform.h>
 #include <linux/irq.h>
 #include <asm/dma.h>
index d5330d4f79d337f2715f0de2b68cc55c38b1945e..916e963e83ba4eed13b2d36460fc084df260f523 100644 (file)
@@ -37,7 +37,9 @@
 #include <linux/spi/flash.h>
 #include <linux/irq.h>
 #include <linux/interrupt.h>
+#if defined(CONFIG_USB_MUSB_HDRC) || defined(CONFIG_USB_MUSB_HDRC_MODULE)
 #include <linux/usb/musb.h>
+#endif
 #include <asm/bfin5xx_spi.h>
 #include <asm/cplb.h>
 #include <asm/dma.h>