diff options
author | Jamie Iles <jamie@jamieiles.com> | 2011-05-23 05:23:43 -0400 |
---|---|---|
committer | David Woodhouse <David.Woodhouse@intel.com> | 2011-05-24 21:25:35 -0400 |
commit | 6a8a98b22b10f1560d5f90aded4a54234b9b2724 (patch) | |
tree | c0757487bad9e1774bebc6fff935e275f036809a /drivers/mtd | |
parent | eea72d5fdf59879edb2c6639b0b7cc385e0df646 (diff) |
mtd: kill CONFIG_MTD_PARTITIONS
Now that none of the drivers use CONFIG_MTD_PARTITIONS we can remove
it from Kconfig and the last remaining uses.
Signed-off-by: Jamie Iles <jamie@jamieiles.com>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'drivers/mtd')
-rw-r--r-- | drivers/mtd/Kconfig | 10 | ||||
-rw-r--r-- | drivers/mtd/Makefile | 3 | ||||
-rw-r--r-- | drivers/mtd/maps/Kconfig | 14 | ||||
-rw-r--r-- | drivers/mtd/mtdchar.c | 5 | ||||
-rw-r--r-- | drivers/mtd/nand/Kconfig | 3 |
5 files changed, 8 insertions, 27 deletions
diff --git a/drivers/mtd/Kconfig b/drivers/mtd/Kconfig index 8b61b0cc7b45..62b4fdbb9ad1 100644 --- a/drivers/mtd/Kconfig +++ b/drivers/mtd/Kconfig | |||
@@ -1,7 +1,6 @@ | |||
1 | menuconfig MTD | 1 | menuconfig MTD |
2 | tristate "Memory Technology Device (MTD) support" | 2 | tristate "Memory Technology Device (MTD) support" |
3 | depends on HAS_IOMEM | 3 | depends on HAS_IOMEM |
4 | select MTD_PARTITIONS | ||
5 | help | 4 | help |
6 | Memory Technology Devices are flash, RAM and similar chips, often | 5 | Memory Technology Devices are flash, RAM and similar chips, often |
7 | used for solid state file systems on embedded devices. This option | 6 | used for solid state file systems on embedded devices. This option |
@@ -34,11 +33,6 @@ config MTD_TESTS | |||
34 | should normally be compiled as kernel modules. The modules perform | 33 | should normally be compiled as kernel modules. The modules perform |
35 | various checks and verifications when loaded. | 34 | various checks and verifications when loaded. |
36 | 35 | ||
37 | config MTD_PARTITIONS | ||
38 | bool | ||
39 | |||
40 | if MTD_PARTITIONS | ||
41 | |||
42 | config MTD_REDBOOT_PARTS | 36 | config MTD_REDBOOT_PARTS |
43 | tristate "RedBoot partition table parsing" | 37 | tristate "RedBoot partition table parsing" |
44 | ---help--- | 38 | ---help--- |
@@ -91,7 +85,7 @@ endif # MTD_REDBOOT_PARTS | |||
91 | 85 | ||
92 | config MTD_CMDLINE_PARTS | 86 | config MTD_CMDLINE_PARTS |
93 | bool "Command line partition table parsing" | 87 | bool "Command line partition table parsing" |
94 | depends on MTD_PARTITIONS = "y" && MTD = "y" | 88 | depends on MTD = "y" |
95 | ---help--- | 89 | ---help--- |
96 | Allow generic configuration of the MTD partition tables via the kernel | 90 | Allow generic configuration of the MTD partition tables via the kernel |
97 | command line. Multiple flash resources are supported for hardware where | 91 | command line. Multiple flash resources are supported for hardware where |
@@ -156,8 +150,6 @@ config MTD_AR7_PARTS | |||
156 | ---help--- | 150 | ---help--- |
157 | TI AR7 partitioning support | 151 | TI AR7 partitioning support |
158 | 152 | ||
159 | endif # MTD_PARTITIONS | ||
160 | |||
161 | comment "User Modules And Translation Layers" | 153 | comment "User Modules And Translation Layers" |
162 | 154 | ||
163 | config MTD_CHAR | 155 | config MTD_CHAR |
diff --git a/drivers/mtd/Makefile b/drivers/mtd/Makefile index d578095fb255..39664c4229ff 100644 --- a/drivers/mtd/Makefile +++ b/drivers/mtd/Makefile | |||
@@ -4,8 +4,7 @@ | |||
4 | 4 | ||
5 | # Core functionality. | 5 | # Core functionality. |
6 | obj-$(CONFIG_MTD) += mtd.o | 6 | obj-$(CONFIG_MTD) += mtd.o |
7 | mtd-y := mtdcore.o mtdsuper.o mtdconcat.o | 7 | mtd-y := mtdcore.o mtdsuper.o mtdconcat.o mtdpart.o |
8 | mtd-$(CONFIG_MTD_PARTITIONS) += mtdpart.o | ||
9 | mtd-$(CONFIG_MTD_OF_PARTS) += ofpart.o | 8 | mtd-$(CONFIG_MTD_OF_PARTS) += ofpart.o |
10 | 9 | ||
11 | obj-$(CONFIG_MTD_REDBOOT_PARTS) += redboot.o | 10 | obj-$(CONFIG_MTD_REDBOOT_PARTS) += redboot.o |
diff --git a/drivers/mtd/maps/Kconfig b/drivers/mtd/maps/Kconfig index 44032433730d..195b9ef3b7ee 100644 --- a/drivers/mtd/maps/Kconfig +++ b/drivers/mtd/maps/Kconfig | |||
@@ -82,7 +82,6 @@ config MTD_PHYSMAP_OF | |||
82 | config MTD_PMC_MSP_EVM | 82 | config MTD_PMC_MSP_EVM |
83 | tristate "CFI Flash device mapped on PMC-Sierra MSP" | 83 | tristate "CFI Flash device mapped on PMC-Sierra MSP" |
84 | depends on PMC_MSP && MTD_CFI | 84 | depends on PMC_MSP && MTD_CFI |
85 | select MTD_PARTITIONS | ||
86 | help | 85 | help |
87 | This provides a 'mapping' driver which supports the way | 86 | This provides a 'mapping' driver which supports the way |
88 | in which user-programmable flash chips are connected on the | 87 | in which user-programmable flash chips are connected on the |
@@ -122,7 +121,7 @@ config MTD_SC520CDP | |||
122 | 121 | ||
123 | config MTD_NETSC520 | 122 | config MTD_NETSC520 |
124 | tristate "CFI Flash device mapped on AMD NetSc520" | 123 | tristate "CFI Flash device mapped on AMD NetSc520" |
125 | depends on X86 && MTD_CFI && MTD_PARTITIONS | 124 | depends on X86 && MTD_CFI |
126 | help | 125 | help |
127 | This enables access routines for the flash chips on the AMD NetSc520 | 126 | This enables access routines for the flash chips on the AMD NetSc520 |
128 | demonstration board. If you have one of these boards and would like | 127 | demonstration board. If you have one of these boards and would like |
@@ -131,7 +130,6 @@ config MTD_NETSC520 | |||
131 | config MTD_TS5500 | 130 | config MTD_TS5500 |
132 | tristate "JEDEC Flash device mapped on Technologic Systems TS-5500" | 131 | tristate "JEDEC Flash device mapped on Technologic Systems TS-5500" |
133 | depends on X86 | 132 | depends on X86 |
134 | select MTD_PARTITIONS | ||
135 | select MTD_JEDECPROBE | 133 | select MTD_JEDECPROBE |
136 | select MTD_CFI_AMDSTD | 134 | select MTD_CFI_AMDSTD |
137 | help | 135 | help |
@@ -149,7 +147,7 @@ config MTD_TS5500 | |||
149 | 147 | ||
150 | config MTD_SBC_GXX | 148 | config MTD_SBC_GXX |
151 | tristate "CFI Flash device mapped on Arcom SBC-GXx boards" | 149 | tristate "CFI Flash device mapped on Arcom SBC-GXx boards" |
152 | depends on X86 && MTD_CFI_INTELEXT && MTD_PARTITIONS && MTD_COMPLEX_MAPPINGS | 150 | depends on X86 && MTD_CFI_INTELEXT && MTD_COMPLEX_MAPPINGS |
153 | help | 151 | help |
154 | This provides a driver for the on-board flash of Arcom Control | 152 | This provides a driver for the on-board flash of Arcom Control |
155 | Systems' SBC-GXn family of boards, formerly known as SBC-MediaGX. | 153 | Systems' SBC-GXn family of boards, formerly known as SBC-MediaGX. |
@@ -246,7 +244,7 @@ config MTD_TSUNAMI | |||
246 | 244 | ||
247 | config MTD_NETtel | 245 | config MTD_NETtel |
248 | tristate "CFI flash device on SnapGear/SecureEdge" | 246 | tristate "CFI flash device on SnapGear/SecureEdge" |
249 | depends on X86 && MTD_PARTITIONS && MTD_JEDECPROBE | 247 | depends on X86 && MTD_JEDECPROBE |
250 | help | 248 | help |
251 | Support for flash chips on NETtel/SecureEdge/SnapGear boards. | 249 | Support for flash chips on NETtel/SecureEdge/SnapGear boards. |
252 | 250 | ||
@@ -261,7 +259,7 @@ config MTD_BCM963XX | |||
261 | 259 | ||
262 | config MTD_DILNETPC | 260 | config MTD_DILNETPC |
263 | tristate "CFI Flash device mapped on DIL/Net PC" | 261 | tristate "CFI Flash device mapped on DIL/Net PC" |
264 | depends on X86 && MTD_PARTITIONS && MTD_CFI_INTELEXT && BROKEN | 262 | depends on X86 && MTD_CFI_INTELEXT && BROKEN |
265 | help | 263 | help |
266 | MTD map driver for SSV DIL/Net PC Boards "DNP" and "ADNP". | 264 | MTD map driver for SSV DIL/Net PC Boards "DNP" and "ADNP". |
267 | For details, see <http://www.ssv-embedded.de/ssv/pc104/p169.htm> | 265 | For details, see <http://www.ssv-embedded.de/ssv/pc104/p169.htm> |
@@ -381,7 +379,7 @@ config MTD_IXP2000 | |||
381 | 379 | ||
382 | config MTD_FORTUNET | 380 | config MTD_FORTUNET |
383 | tristate "CFI Flash device mapped on the FortuNet board" | 381 | tristate "CFI Flash device mapped on the FortuNet board" |
384 | depends on MTD_CFI && MTD_PARTITIONS && SA1100_FORTUNET | 382 | depends on MTD_CFI && SA1100_FORTUNET |
385 | help | 383 | help |
386 | This enables access to the Flash on the FortuNet board. If you | 384 | This enables access to the Flash on the FortuNet board. If you |
387 | have such a board, say 'Y'. | 385 | have such a board, say 'Y'. |
@@ -479,7 +477,6 @@ config MTD_UCLINUX | |||
479 | config MTD_WRSBC8260 | 477 | config MTD_WRSBC8260 |
480 | tristate "Map driver for WindRiver PowerQUICC II MPC82xx board" | 478 | tristate "Map driver for WindRiver PowerQUICC II MPC82xx board" |
481 | depends on (SBC82xx || SBC8560) | 479 | depends on (SBC82xx || SBC8560) |
482 | select MTD_PARTITIONS | ||
483 | select MTD_MAP_BANK_WIDTH_4 | 480 | select MTD_MAP_BANK_WIDTH_4 |
484 | select MTD_MAP_BANK_WIDTH_1 | 481 | select MTD_MAP_BANK_WIDTH_1 |
485 | select MTD_CFI_I1 | 482 | select MTD_CFI_I1 |
@@ -492,7 +489,6 @@ config MTD_WRSBC8260 | |||
492 | config MTD_DMV182 | 489 | config MTD_DMV182 |
493 | tristate "Map driver for Dy-4 SVME/DMV-182 board." | 490 | tristate "Map driver for Dy-4 SVME/DMV-182 board." |
494 | depends on DMV182 | 491 | depends on DMV182 |
495 | select MTD_PARTITIONS | ||
496 | select MTD_MAP_BANK_WIDTH_32 | 492 | select MTD_MAP_BANK_WIDTH_32 |
497 | select MTD_CFI_I8 | 493 | select MTD_CFI_I8 |
498 | select MTD_CFI_AMDSTD | 494 | select MTD_CFI_AMDSTD |
diff --git a/drivers/mtd/mtdchar.c b/drivers/mtd/mtdchar.c index f488eabaa7b5..3f92731a5b9e 100644 --- a/drivers/mtd/mtdchar.c +++ b/drivers/mtd/mtdchar.c | |||
@@ -508,7 +508,6 @@ static int shrink_ecclayout(const struct nand_ecclayout *from, | |||
508 | return 0; | 508 | return 0; |
509 | } | 509 | } |
510 | 510 | ||
511 | #ifdef CONFIG_MTD_PARTITIONS | ||
512 | static int mtd_blkpg_ioctl(struct mtd_info *mtd, | 511 | static int mtd_blkpg_ioctl(struct mtd_info *mtd, |
513 | struct blkpg_ioctl_arg __user *arg) | 512 | struct blkpg_ioctl_arg __user *arg) |
514 | { | 513 | { |
@@ -544,8 +543,6 @@ static int mtd_blkpg_ioctl(struct mtd_info *mtd, | |||
544 | return -EINVAL; | 543 | return -EINVAL; |
545 | } | 544 | } |
546 | } | 545 | } |
547 | #endif | ||
548 | |||
549 | 546 | ||
550 | static int mtd_ioctl(struct file *file, u_int cmd, u_long arg) | 547 | static int mtd_ioctl(struct file *file, u_int cmd, u_long arg) |
551 | { | 548 | { |
@@ -937,7 +934,6 @@ static int mtd_ioctl(struct file *file, u_int cmd, u_long arg) | |||
937 | break; | 934 | break; |
938 | } | 935 | } |
939 | 936 | ||
940 | #ifdef CONFIG_MTD_PARTITIONS | ||
941 | case BLKPG: | 937 | case BLKPG: |
942 | { | 938 | { |
943 | ret = mtd_blkpg_ioctl(mtd, | 939 | ret = mtd_blkpg_ioctl(mtd, |
@@ -951,7 +947,6 @@ static int mtd_ioctl(struct file *file, u_int cmd, u_long arg) | |||
951 | ret = 0; | 947 | ret = 0; |
952 | break; | 948 | break; |
953 | } | 949 | } |
954 | #endif | ||
955 | 950 | ||
956 | default: | 951 | default: |
957 | ret = -ENOTTY; | 952 | ret = -ENOTTY; |
diff --git a/drivers/mtd/nand/Kconfig b/drivers/mtd/nand/Kconfig index 333d23122226..4c3425235adc 100644 --- a/drivers/mtd/nand/Kconfig +++ b/drivers/mtd/nand/Kconfig | |||
@@ -419,7 +419,6 @@ config MTD_NAND_TMIO | |||
419 | 419 | ||
420 | config MTD_NAND_NANDSIM | 420 | config MTD_NAND_NANDSIM |
421 | tristate "Support for NAND Flash Simulator" | 421 | tristate "Support for NAND Flash Simulator" |
422 | depends on MTD_PARTITIONS | ||
423 | help | 422 | help |
424 | The simulator may simulate various NAND flash chips for the | 423 | The simulator may simulate various NAND flash chips for the |
425 | MTD nand layer. | 424 | MTD nand layer. |
@@ -513,7 +512,7 @@ config MTD_NAND_SOCRATES | |||
513 | 512 | ||
514 | config MTD_NAND_NUC900 | 513 | config MTD_NAND_NUC900 |
515 | tristate "Support for NAND on Nuvoton NUC9xx/w90p910 evaluation boards." | 514 | tristate "Support for NAND on Nuvoton NUC9xx/w90p910 evaluation boards." |
516 | depends on ARCH_W90X900 && MTD_PARTITIONS | 515 | depends on ARCH_W90X900 |
517 | help | 516 | help |
518 | This enables the driver for the NAND Flash on evaluation board based | 517 | This enables the driver for the NAND Flash on evaluation board based |
519 | on w90p910 / NUC9xx. | 518 | on w90p910 / NUC9xx. |