diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2011-05-27 23:06:53 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-05-27 23:06:53 -0400 |
commit | 29a6ccca3869bbe33879dae0cd7df2a1559eff54 (patch) | |
tree | 2d9d355d8662ede95af7bc812d686dc4d5f37ff3 /arch/cris | |
parent | 426048313dfa7d65dbd2379b1665755511f9544f (diff) | |
parent | 6a8a98b22b10f1560d5f90aded4a54234b9b2724 (diff) |
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
Diffstat (limited to 'arch/cris')
-rw-r--r-- | arch/cris/Kconfig | 1 | ||||
-rw-r--r-- | arch/cris/arch-v10/drivers/axisflashmap.c | 10 | ||||
-rw-r--r-- | arch/cris/arch-v32/drivers/Kconfig | 1 | ||||
-rw-r--r-- | arch/cris/arch-v32/drivers/axisflashmap.c | 7 |
4 files changed, 10 insertions, 9 deletions
diff --git a/arch/cris/Kconfig b/arch/cris/Kconfig index b6b94a27d276..17addacb169e 100644 --- a/arch/cris/Kconfig +++ b/arch/cris/Kconfig | |||
@@ -270,7 +270,6 @@ config ETRAX_AXISFLASHMAP | |||
270 | select MTD_JEDECPROBE if ETRAX_ARCH_V32 | 270 | select MTD_JEDECPROBE if ETRAX_ARCH_V32 |
271 | select MTD_CHAR | 271 | select MTD_CHAR |
272 | select MTD_BLOCK | 272 | select MTD_BLOCK |
273 | select MTD_PARTITIONS | ||
274 | select MTD_COMPLEX_MAPPINGS | 273 | select MTD_COMPLEX_MAPPINGS |
275 | help | 274 | help |
276 | This option enables MTD mapping of flash devices. Needed to use | 275 | This option enables MTD mapping of flash devices. Needed to use |
diff --git a/arch/cris/arch-v10/drivers/axisflashmap.c b/arch/cris/arch-v10/drivers/axisflashmap.c index ed708e19d09e..a4bbdfd37bd8 100644 --- a/arch/cris/arch-v10/drivers/axisflashmap.c +++ b/arch/cris/arch-v10/drivers/axisflashmap.c | |||
@@ -372,7 +372,7 @@ static int __init init_axis_flash(void) | |||
372 | #ifdef CONFIG_ETRAX_AXISFLASHMAP_MTD0WHOLE | 372 | #ifdef CONFIG_ETRAX_AXISFLASHMAP_MTD0WHOLE |
373 | if (mymtd) { | 373 | if (mymtd) { |
374 | main_partition.size = mymtd->size; | 374 | main_partition.size = mymtd->size; |
375 | err = add_mtd_partitions(mymtd, &main_partition, 1); | 375 | err = mtd_device_register(mymtd, &main_partition, 1); |
376 | if (err) | 376 | if (err) |
377 | panic("axisflashmap: Could not initialize " | 377 | panic("axisflashmap: Could not initialize " |
378 | "partition for whole main mtd device!\n"); | 378 | "partition for whole main mtd device!\n"); |
@@ -382,10 +382,12 @@ static int __init init_axis_flash(void) | |||
382 | if (mymtd) { | 382 | if (mymtd) { |
383 | if (use_default_ptable) { | 383 | if (use_default_ptable) { |
384 | printk(KERN_INFO " Using default partition table.\n"); | 384 | printk(KERN_INFO " Using default partition table.\n"); |
385 | err = add_mtd_partitions(mymtd, axis_default_partitions, | 385 | err = mtd_device_register(mymtd, |
386 | NUM_DEFAULT_PARTITIONS); | 386 | axis_default_partitions, |
387 | NUM_DEFAULT_PARTITIONS); | ||
387 | } else { | 388 | } else { |
388 | err = add_mtd_partitions(mymtd, axis_partitions, pidx); | 389 | err = mtd_device_register(mymtd, axis_partitions, |
390 | pidx); | ||
389 | } | 391 | } |
390 | 392 | ||
391 | if (err) | 393 | if (err) |
diff --git a/arch/cris/arch-v32/drivers/Kconfig b/arch/cris/arch-v32/drivers/Kconfig index 1633b120aa81..41a2732e8b9c 100644 --- a/arch/cris/arch-v32/drivers/Kconfig +++ b/arch/cris/arch-v32/drivers/Kconfig | |||
@@ -405,7 +405,6 @@ config ETRAX_AXISFLASHMAP | |||
405 | select MTD_JEDECPROBE | 405 | select MTD_JEDECPROBE |
406 | select MTD_CHAR | 406 | select MTD_CHAR |
407 | select MTD_BLOCK | 407 | select MTD_BLOCK |
408 | select MTD_PARTITIONS | ||
409 | select MTD_COMPLEX_MAPPINGS | 408 | select MTD_COMPLEX_MAPPINGS |
410 | help | 409 | help |
411 | This option enables MTD mapping of flash devices. Needed to use | 410 | This option enables MTD mapping of flash devices. Needed to use |
diff --git a/arch/cris/arch-v32/drivers/axisflashmap.c b/arch/cris/arch-v32/drivers/axisflashmap.c index 7b155f8203b8..a2bde3744622 100644 --- a/arch/cris/arch-v32/drivers/axisflashmap.c +++ b/arch/cris/arch-v32/drivers/axisflashmap.c | |||
@@ -561,7 +561,7 @@ static int __init init_axis_flash(void) | |||
561 | #ifdef CONFIG_ETRAX_AXISFLASHMAP_MTD0WHOLE | 561 | #ifdef CONFIG_ETRAX_AXISFLASHMAP_MTD0WHOLE |
562 | if (main_mtd) { | 562 | if (main_mtd) { |
563 | main_partition.size = main_mtd->size; | 563 | main_partition.size = main_mtd->size; |
564 | err = add_mtd_partitions(main_mtd, &main_partition, 1); | 564 | err = mtd_device_register(main_mtd, &main_partition, 1); |
565 | if (err) | 565 | if (err) |
566 | panic("axisflashmap: Could not initialize " | 566 | panic("axisflashmap: Could not initialize " |
567 | "partition for whole main mtd device!\n"); | 567 | "partition for whole main mtd device!\n"); |
@@ -597,7 +597,8 @@ static int __init init_axis_flash(void) | |||
597 | mtd_ram->erasesize = (main_mtd ? main_mtd->erasesize : | 597 | mtd_ram->erasesize = (main_mtd ? main_mtd->erasesize : |
598 | CONFIG_ETRAX_PTABLE_SECTOR); | 598 | CONFIG_ETRAX_PTABLE_SECTOR); |
599 | } else { | 599 | } else { |
600 | err = add_mtd_partitions(main_mtd, &partition[part], 1); | 600 | err = mtd_device_register(main_mtd, &partition[part], |
601 | 1); | ||
601 | if (err) | 602 | if (err) |
602 | panic("axisflashmap: Could not add mtd " | 603 | panic("axisflashmap: Could not add mtd " |
603 | "partition %d\n", part); | 604 | "partition %d\n", part); |
@@ -633,7 +634,7 @@ static int __init init_axis_flash(void) | |||
633 | #ifndef CONFIG_ETRAX_VCS_SIM | 634 | #ifndef CONFIG_ETRAX_VCS_SIM |
634 | if (aux_mtd) { | 635 | if (aux_mtd) { |
635 | aux_partition.size = aux_mtd->size; | 636 | aux_partition.size = aux_mtd->size; |
636 | err = add_mtd_partitions(aux_mtd, &aux_partition, 1); | 637 | err = mtd_device_register(aux_mtd, &aux_partition, 1); |
637 | if (err) | 638 | if (err) |
638 | panic("axisflashmap: Could not initialize " | 639 | panic("axisflashmap: Could not initialize " |
639 | "aux mtd device!\n"); | 640 | "aux mtd device!\n"); |