Skip to content

Commit 29a6ccc

Browse files
committed
Merge git://git.infradead.org/mtd-2.6
* git://git.infradead.org/mtd-2.6: (97 commits) mtd: kill CONFIG_MTD_PARTITIONS mtd: remove add_mtd_partitions, add_mtd_device and friends mtd: convert remaining users to mtd_device_register() mtd: samsung onenand: convert to mtd_device_register() mtd: omap2 onenand: convert to mtd_device_register() mtd: txx9ndfmc: convert to mtd_device_register() mtd: tmio_nand: convert to mtd_device_register() mtd: socrates_nand: convert to mtd_device_register() mtd: sharpsl: convert to mtd_device_register() mtd: s3c2410 nand: convert to mtd_device_register() mtd: ppchameleonevb: convert to mtd_device_register() mtd: orion_nand: convert to mtd_device_register() mtd: omap2: convert to mtd_device_register() mtd: nomadik_nand: convert to mtd_device_register() mtd: ndfc: convert to mtd_device_register() mtd: mxc_nand: convert to mtd_device_register() mtd: mpc5121_nfc: convert to mtd_device_register() mtd: jz4740_nand: convert to mtd_device_register() mtd: h1910: convert to mtd_device_register() mtd: fsmc_nand: convert to mtd_device_register() ... Fixed up trivial conflicts in - drivers/mtd/maps/integrator-flash.c: removed in ARM tree - drivers/mtd/maps/physmap.c: addition of afs partition probe type clashing with removal of CONFIG_MTD_PARTITIONS
2 parents 4260483 + 6a8a98b commit 29a6ccc

152 files changed

Lines changed: 1041 additions & 1690 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎Documentation/DocBook/mtdnand.tmpl‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,8 +189,7 @@ static void __iomem *baseaddr;
189189
<title>Partition defines</title>
190190
<para>
191191
If you want to divide your device into partitions, then
192-
enable the configuration switch CONFIG_MTD_PARTITIONS and define
193-
a partitioning scheme suitable to your board.
192+
define a partitioning scheme suitable to your board.
194193
</para>
195194
<programlisting>
196195
#define NUM_PARTITIONS 2

‎arch/arm/mach-gemini/board-wbd111.c‎

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,6 @@ static struct sys_timer wbd111_timer = {
8484
.init = gemini_timer_init,
8585
};
8686

87-
#ifdef CONFIG_MTD_PARTITIONS
8887
static struct mtd_partition wbd111_partitions[] = {
8988
{
9089
.name = "RedBoot",
@@ -116,11 +115,7 @@ static struct mtd_partition wbd111_partitions[] = {
116115
.mask_flags = MTD_WRITEABLE,
117116
}
118117
};
119-
#define wbd111_num_partitions ARRAY_SIZE(wbd111_partitions)
120-
#else
121-
#define wbd111_partitions NULL
122-
#define wbd111_num_partitions 0
123-
#endif /* CONFIG_MTD_PARTITIONS */
118+
#define wbd111_num_partitions ARRAY_SIZE(wbd111_partitions)
124119

125120
static void __init wbd111_init(void)
126121
{

‎arch/arm/mach-gemini/board-wbd222.c‎

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,6 @@ static struct sys_timer wbd222_timer = {
8484
.init = gemini_timer_init,
8585
};
8686

87-
#ifdef CONFIG_MTD_PARTITIONS
8887
static struct mtd_partition wbd222_partitions[] = {
8988
{
9089
.name = "RedBoot",
@@ -116,11 +115,7 @@ static struct mtd_partition wbd222_partitions[] = {
116115
.mask_flags = MTD_WRITEABLE,
117116
}
118117
};
119-
#define wbd222_num_partitions ARRAY_SIZE(wbd222_partitions)
120-
#else
121-
#define wbd222_partitions NULL
122-
#define wbd222_num_partitions 0
123-
#endif /* CONFIG_MTD_PARTITIONS */
118+
#define wbd222_num_partitions ARRAY_SIZE(wbd222_partitions)
124119

125120
static void __init wbd222_init(void)
126121
{

‎arch/arm/mach-ixp4xx/ixdp425-setup.c‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@ static struct platform_device ixdp425_flash = {
6060
#if defined(CONFIG_MTD_NAND_PLATFORM) || \
6161
defined(CONFIG_MTD_NAND_PLATFORM_MODULE)
6262

63-
#ifdef CONFIG_MTD_PARTITIONS
6463
const char *part_probes[] = { "cmdlinepart", NULL };
6564

6665
static struct mtd_partition ixdp425_partitions[] = {
@@ -74,7 +73,6 @@ static struct mtd_partition ixdp425_partitions[] = {
7473
.size = MTDPART_SIZ_FULL
7574
},
7675
};
77-
#endif
7876

7977
static void
8078
ixdp425_flash_nand_cmd_ctrl(struct mtd_info *mtd, int cmd, unsigned int ctrl)
@@ -103,11 +101,9 @@ static struct platform_nand_data ixdp425_flash_nand_data = {
103101
.nr_chips = 1,
104102
.chip_delay = 30,
105103
.options = NAND_NO_AUTOINCR,
106-
#ifdef CONFIG_MTD_PARTITIONS
107104
.part_probe_types = part_probes,
108105
.partitions = ixdp425_partitions,
109106
.nr_partitions = ARRAY_SIZE(ixdp425_partitions),
110-
#endif
111107
},
112108
.ctrl = {
113109
.cmd_ctrl = ixdp425_flash_nand_cmd_ctrl

‎arch/arm/mach-pxa/Kconfig‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,6 @@ config MACH_XCEP
153153
bool "Iskratel Electronics XCEP"
154154
select PXA25x
155155
select MTD
156-
select MTD_PARTITIONS
157156
select MTD_PHYSMAP
158157
select MTD_CFI_INTELEXT
159158
select MTD_CFI

‎arch/arm/mach-s3c2410/mach-amlm5900.c‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,6 @@
5858
#include <plat/cpu.h>
5959
#include <plat/gpio-cfg.h>
6060

61-
#ifdef CONFIG_MTD_PARTITIONS
62-
6361
#include <linux/mtd/mtd.h>
6462
#include <linux/mtd/partitions.h>
6563
#include <linux/mtd/map.h>
@@ -113,7 +111,6 @@ static struct platform_device amlm5900_device_nor = {
113111
.num_resources = 1,
114112
.resource = &amlm5900_nor_resource,
115113
};
116-
#endif
117114

118115
static struct map_desc amlm5900_iodesc[] __initdata = {
119116
};
@@ -158,9 +155,7 @@ static struct platform_device *amlm5900_devices[] __initdata = {
158155
&s3c_device_rtc,
159156
&s3c_device_usbgadget,
160157
&s3c_device_sdi,
161-
#ifdef CONFIG_MTD_PARTITIONS
162158
&amlm5900_device_nor,
163-
#endif
164159
};
165160

166161
static void __init amlm5900_map_io(void)

‎arch/arm/mach-s3c2410/mach-tct_hammer.c‎

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,6 @@
4949
#include <plat/devs.h>
5050
#include <plat/cpu.h>
5151

52-
#ifdef CONFIG_MTD_PARTITIONS
53-
5452
#include <linux/mtd/mtd.h>
5553
#include <linux/mtd/partitions.h>
5654
#include <linux/mtd/map.h>
@@ -91,8 +89,6 @@ static struct platform_device tct_hammer_device_nor = {
9189
.resource = &tct_hammer_nor_resource,
9290
};
9391

94-
#endif
95-
9692
static struct map_desc tct_hammer_iodesc[] __initdata = {
9793
};
9894

@@ -133,9 +129,7 @@ static struct platform_device *tct_hammer_devices[] __initdata = {
133129
&s3c_device_rtc,
134130
&s3c_device_usbgadget,
135131
&s3c_device_sdi,
136-
#ifdef CONFIG_MTD_PARTITIONS
137132
&tct_hammer_device_nor,
138-
#endif
139133
};
140134

141135
static void __init tct_hammer_map_io(void)

‎arch/blackfin/mach-bf537/boards/stamp.c‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,6 @@ static struct platform_device net2272_bfin_device = {
382382
#endif
383383

384384
#if defined(CONFIG_MTD_NAND_PLATFORM) || defined(CONFIG_MTD_NAND_PLATFORM_MODULE)
385-
#ifdef CONFIG_MTD_PARTITIONS
386385
const char *part_probes[] = { "cmdlinepart", "RedBoot", NULL };
387386

388387
static struct mtd_partition bfin_plat_nand_partitions[] = {
@@ -396,7 +395,6 @@ static struct mtd_partition bfin_plat_nand_partitions[] = {
396395
.offset = MTDPART_OFS_APPEND,
397396
},
398397
};
399-
#endif
400398

401399
#define BFIN_NAND_PLAT_CLE 2
402400
#define BFIN_NAND_PLAT_ALE 1
@@ -423,11 +421,9 @@ static struct platform_nand_data bfin_plat_nand_data = {
423421
.chip = {
424422
.nr_chips = 1,
425423
.chip_delay = 30,
426-
#ifdef CONFIG_MTD_PARTITIONS
427424
.part_probe_types = part_probes,
428425
.partitions = bfin_plat_nand_partitions,
429426
.nr_partitions = ARRAY_SIZE(bfin_plat_nand_partitions),
430-
#endif
431427
},
432428
.ctrl = {
433429
.cmd_ctrl = bfin_plat_nand_cmd_ctrl,

‎arch/blackfin/mach-bf561/boards/acvilon.c‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,6 @@ static struct platform_device bfin_uart0_device = {
243243

244244
#if defined(CONFIG_MTD_NAND_PLATFORM) || defined(CONFIG_MTD_NAND_PLATFORM_MODULE)
245245

246-
#ifdef CONFIG_MTD_PARTITIONS
247246
const char *part_probes[] = { "cmdlinepart", NULL };
248247

249248
static struct mtd_partition bfin_plat_nand_partitions[] = {
@@ -257,7 +256,6 @@ static struct mtd_partition bfin_plat_nand_partitions[] = {
257256
.offset = MTDPART_OFS_APPEND,
258257
},
259258
};
260-
#endif
261259

262260
#define BFIN_NAND_PLAT_CLE 2
263261
#define BFIN_NAND_PLAT_ALE 3
@@ -286,11 +284,9 @@ static struct platform_nand_data bfin_plat_nand_data = {
286284
.chip = {
287285
.nr_chips = 1,
288286
.chip_delay = 30,
289-
#ifdef CONFIG_MTD_PARTITIONS
290287
.part_probe_types = part_probes,
291288
.partitions = bfin_plat_nand_partitions,
292289
.nr_partitions = ARRAY_SIZE(bfin_plat_nand_partitions),
293-
#endif
294290
},
295291
.ctrl = {
296292
.cmd_ctrl = bfin_plat_nand_cmd_ctrl,

‎arch/cris/Kconfig‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,6 @@ config ETRAX_AXISFLASHMAP
270270
select MTD_JEDECPROBE if ETRAX_ARCH_V32
271271
select MTD_CHAR
272272
select MTD_BLOCK
273-
select MTD_PARTITIONS
274273
select MTD_COMPLEX_MAPPINGS
275274
help
276275
This option enables MTD mapping of flash devices. Needed to use

0 commit comments

Comments
 (0)