linux-mips.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 2/2] octeon: only build flash_setup code when CONFIG_MTD is set
@ 2009-06-22  9:16 Florian Fainelli
  2009-06-22 14:40 ` Ralf Baechle
  0 siblings, 1 reply; 3+ messages in thread
From: Florian Fainelli @ 2009-06-22  9:16 UTC (permalink / raw)
  To: linux-mips; +Cc: Ralf Baechle, David Daney

This patch makes the flash_setup code be compiled only when
CONFIG_MTD is set, it does make sense to register a physmap
platform driver without the MTD subsystem being enabled.

CC: David Daney <ddaney@caviumnetworks.com>
Signed-off-by: Florian Fainelli <florian@openwrt.org>
---
diff --git a/arch/mips/cavium-octeon/Makefile b/arch/mips/cavium-octeon/Makefile
index 7c0528b..f1b401b 100644
--- a/arch/mips/cavium-octeon/Makefile
+++ b/arch/mips/cavium-octeon/Makefile
@@ -10,9 +10,10 @@
 #
 
 obj-y := setup.o serial.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-$(CONFIG_MTD)		      += flash_setup.o
 obj-$(CONFIG_SMP)                     += smp.o
 obj-$(CONFIG_PCI)                     += pci-common.o
 obj-$(CONFIG_PCI)                     += pci.o

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-06-22 21:09 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-06-22  9:16 [PATCH 2/2] octeon: only build flash_setup code when CONFIG_MTD is set Florian Fainelli
2009-06-22 14:40 ` Ralf Baechle
2009-06-22 21:05   ` Florian Fainelli

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).