linux-mips
[Top] [All Lists]

[PATCH 2/2] octeon: only build flash_setup code when CONFIG_MTD is set

To: linux-mips@linux-mips.org
Subject: [PATCH 2/2] octeon: only build flash_setup code when CONFIG_MTD is set
From: Florian Fainelli <florian@openwrt.org>
Date: Mon, 22 Jun 2009 11:16:21 +0200
Cc: Ralf Baechle <ralf@linux-mips.org>, David Daney <ddaney@caviumnetworks.com>
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:from:date:subject :mime-version:x-uid:x-length:to:cc:content-type :content-transfer-encoding:content-disposition:message-id; bh=bq7AQtDvAhbqkisXgjKzgZ4CxfzhnI2OgQA8wK3luEI=; b=WK50QNRViZKS7KZxUmw6SytnSL3NcN72gqolU/MgtEnnmMNfvxHLi7isq8uZejsHvb FvvQvWD+u4xfPhgTA0mIFSt3A75D/LYoAevamaYN1qt/WUFW6p742civhLQ7tcW2soLJ ag8uetiELoMu8SZTT1aq9u9rr0Yr9Zlw+hidM=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:from:date:subject:mime-version:x-uid:x-length:to:cc :content-type:content-transfer-encoding:content-disposition :message-id; b=Ba3L9S8CIg3GsA4lW0oiPnsCDNL0QeBCmeU1GRFW4Cdmq622funoI71kpkhp07g/fZ oyXFmmd8U9NSiVUgBxLzOT5ansRA+VV04+XGCx0bWEG7IQgYpOxpM8o6MB5+QJhom8lt gxZbzi+MBCoinAYM5zUAg3SBxa1UvwNgB/qig=
Original-recipient: rfc822;linux-mips@linux-mips.org
Sender: linux-mips-bounce@linux-mips.org
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

<Prev in Thread] Current Thread [Next in Thread>