mips: tx99: remove CONFIG_MTD_PARTITIONS check

Linux-MTD Mailing List linux-mtd at lists.infradead.org
Tue May 24 21:59:09 EDT 2011


Gitweb:     http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=47854888cc21cb1afd7797c66886a8b06cf35979
Commit:     47854888cc21cb1afd7797c66886a8b06cf35979
Parent:     5851becb5bae13ca6525fd0d97116043fcb0e20e
Author:     Jamie Iles <jamie at jamieiles.com>
AuthorDate: Mon May 23 10:22:55 2011 +0100
Committer:  David Woodhouse <David.Woodhouse at intel.com>
CommitDate: Wed May 25 02:21:14 2011 +0100

    mips: tx99: remove CONFIG_MTD_PARTITIONS check
    
    CONFIG_MTD_PARTITIONS no longer exists as MTD partitioning is always
    enabled now.
    
    Cc: Ralf Baechle <ralf at linux-mips.org>
    Signed-off-by: Jamie Iles <jamie at jamieiles.com>
    Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy at nokia.com>
    Signed-off-by: David Woodhouse <David.Woodhouse at intel.com>
---
 arch/mips/txx9/generic/setup.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/arch/mips/txx9/generic/setup.c b/arch/mips/txx9/generic/setup.c
index 812816c..ec38e00 100644
--- a/arch/mips/txx9/generic/setup.c
+++ b/arch/mips/txx9/generic/setup.c
@@ -639,7 +639,6 @@ void __init txx9_physmap_flash_init(int no, unsigned long addr,
 		.flags = IORESOURCE_MEM,
 	};
 	struct platform_device *pdev;
-#ifdef CONFIG_MTD_PARTITIONS
 	static struct mtd_partition parts[2];
 	struct physmap_flash_data pdata_part;
 
@@ -658,7 +657,7 @@ void __init txx9_physmap_flash_init(int no, unsigned long addr,
 		pdata_part.parts = parts;
 		pdata = &pdata_part;
 	}
-#endif
+
 	pdev = platform_device_alloc("physmap-flash", no);
 	if (!pdev ||
 	    platform_device_add_resources(pdev, &res, 1) ||



More information about the linux-mtd-cvs mailing list