]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
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>
Tue, 18 Jun 2013 19:23:46 +0000 (21:23 +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