MIPS: Octeon: Fix build error if CONFIG_MTD=n
authorRalf Baechle <ralf@linux-mips.org>
Thu, 13 Jun 2013 00:26:34 +0000 (02:26 +0200)
committerRalf Baechle <ralf@linux-mips.org>
Thu, 20 Jun 2013 14:20:44 +0000 (16:20 +0200)
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/cavium-octeon/Makefile

index 3595affb97722827ddbbf5f6216511488dbe6c01..e3fd50cc709cff428fcd97d9273f1d0fcbe40ee4 100644 (file)
@@ -13,10 +13,11 @@ CFLAGS_octeon-platform.o = -I$(src)/../../../scripts/dtc/libfdt
 CFLAGS_setup.o = -I$(src)/../../../scripts/dtc/libfdt
 
 obj-y := cpu.o setup.o serial.o octeon-platform.o octeon-irq.o csrc-octeon.o
-obj-y += dma-octeon.o flash_setup.o
+obj-y += dma-octeon.o
 obj-y += octeon-memcpy.o
 obj-y += executive/
 
+obj-$(CONFIG_MTD)                    += flash_setup.o
 obj-$(CONFIG_SMP)                    += smp.o
 obj-$(CONFIG_OCTEON_ILM)             += oct_ilm.o