]> err.no Git - linux-2.6/commitdiff
[POWERPC] Don't include powerpc/sysdev/rom.o for arch/ppc builds
authorGrant Likely <grant.likely@secretlab.ca>
Tue, 2 Jan 2007 22:45:29 +0000 (15:45 -0700)
committerPaul Mackerras <paulus@samba.org>
Tue, 9 Jan 2007 06:03:02 +0000 (17:03 +1100)
sysdev/rom.c is for arch/powerpc only.  Don't compile it when building
an arch/ppc kernel.

Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Acked-by: Sylvain Munaut <tnt@246tNt.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/sysdev/Makefile

index 04d4917eb3035c4140d184e1c740b6fc9eb535cd..2621a7e72d2d1f0ec7839c0ca1ba7b309600a198 100644 (file)
@@ -12,7 +12,6 @@ obj-$(CONFIG_MMIO_NVRAM)      += mmio_nvram.o
 obj-$(CONFIG_FSL_SOC)          += fsl_soc.o
 obj-$(CONFIG_TSI108_BRIDGE)    += tsi108_pci.o tsi108_dev.o
 obj-$(CONFIG_QUICC_ENGINE)     += qe_lib/
-obj-$(CONFIG_MTD)              += rom.o
 
 ifeq ($(CONFIG_PPC_MERGE),y)
 obj-$(CONFIG_PPC_I8259)                += i8259.o
@@ -21,5 +20,6 @@ endif
 
 # Temporary hack until we have migrated to asm-powerpc
 ifeq ($(ARCH),powerpc)
+obj-$(CONFIG_MTD)              += rom.o
 obj-$(CONFIG_CPM2)             += cpm2_common.o cpm2_pic.o
 endif