diff options
author | H Hartley Sweeten <hartleys@visionengravers.com> | 2012-03-28 14:13:09 -0400 |
---|---|---|
committer | David Woodhouse <David.Woodhouse@intel.com> | 2012-05-13 23:47:06 -0400 |
commit | 60f8291003844a42b6edd4d8f37b2995c9431b57 (patch) | |
tree | 8c4a6f56d6f4f13f27d89a2a6582e344b360a701 | |
parent | f2e5a24480023db86ebd455c807aa30dc224ba9a (diff) |
arm: Use the plat_nand default partition parser
Use the default partition parser, cmdlinepart, provided by the plat_nand driver.
Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Acked-by: Tony Lindgren <tony@atomide.com>
Acked-by: Alexander Clouter <alex@digriz.org.uk>
Acked-by: Marek Vasut <marek.vasut@gmail.com>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
-rw-r--r-- | arch/arm/mach-ep93xx/snappercl15.c | 3 | ||||
-rw-r--r-- | arch/arm/mach-ep93xx/ts72xx.c | 3 | ||||
-rw-r--r-- | arch/arm/mach-ixp4xx/ixdp425-setup.c | 3 | ||||
-rw-r--r-- | arch/arm/mach-omap1/board-fsample.c | 3 | ||||
-rw-r--r-- | arch/arm/mach-omap1/board-h2.c | 3 | ||||
-rw-r--r-- | arch/arm/mach-omap1/board-h3.c | 3 | ||||
-rw-r--r-- | arch/arm/mach-omap1/board-perseus2.c | 3 | ||||
-rw-r--r-- | arch/arm/mach-orion5x/ts78xx-setup.c | 3 | ||||
-rw-r--r-- | arch/arm/mach-pxa/balloon3.c | 3 | ||||
-rw-r--r-- | arch/arm/mach-pxa/em-x270.c | 3 | ||||
-rw-r--r-- | arch/arm/mach-pxa/palmtx.c | 3 |
11 files changed, 0 insertions, 33 deletions
diff --git a/arch/arm/mach-ep93xx/snappercl15.c b/arch/arm/mach-ep93xx/snappercl15.c index 0c00852ef160..5df9092f1fcc 100644 --- a/arch/arm/mach-ep93xx/snappercl15.c +++ b/arch/arm/mach-ep93xx/snappercl15.c | |||
@@ -82,8 +82,6 @@ static int snappercl15_nand_dev_ready(struct mtd_info *mtd) | |||
82 | return !!(__raw_readw(NAND_CTRL_ADDR(chip)) & SNAPPERCL15_NAND_RDY); | 82 | return !!(__raw_readw(NAND_CTRL_ADDR(chip)) & SNAPPERCL15_NAND_RDY); |
83 | } | 83 | } |
84 | 84 | ||
85 | static const char *snappercl15_nand_part_probes[] = {"cmdlinepart", NULL}; | ||
86 | |||
87 | static struct mtd_partition snappercl15_nand_parts[] = { | 85 | static struct mtd_partition snappercl15_nand_parts[] = { |
88 | { | 86 | { |
89 | .name = "Kernel", | 87 | .name = "Kernel", |
@@ -100,7 +98,6 @@ static struct mtd_partition snappercl15_nand_parts[] = { | |||
100 | static struct platform_nand_data snappercl15_nand_data = { | 98 | static struct platform_nand_data snappercl15_nand_data = { |
101 | .chip = { | 99 | .chip = { |
102 | .nr_chips = 1, | 100 | .nr_chips = 1, |
103 | .part_probe_types = snappercl15_nand_part_probes, | ||
104 | .partitions = snappercl15_nand_parts, | 101 | .partitions = snappercl15_nand_parts, |
105 | .nr_partitions = ARRAY_SIZE(snappercl15_nand_parts), | 102 | .nr_partitions = ARRAY_SIZE(snappercl15_nand_parts), |
106 | .options = NAND_NO_AUTOINCR, | 103 | .options = NAND_NO_AUTOINCR, |
diff --git a/arch/arm/mach-ep93xx/ts72xx.c b/arch/arm/mach-ep93xx/ts72xx.c index 5ea790942e94..14d712175192 100644 --- a/arch/arm/mach-ep93xx/ts72xx.c +++ b/arch/arm/mach-ep93xx/ts72xx.c | |||
@@ -105,8 +105,6 @@ static int ts72xx_nand_device_ready(struct mtd_info *mtd) | |||
105 | return !!(__raw_readb(addr) & 0x20); | 105 | return !!(__raw_readb(addr) & 0x20); |
106 | } | 106 | } |
107 | 107 | ||
108 | static const char *ts72xx_nand_part_probes[] = { "cmdlinepart", NULL }; | ||
109 | |||
110 | #define TS72XX_BOOTROM_PART_SIZE (SZ_16K) | 108 | #define TS72XX_BOOTROM_PART_SIZE (SZ_16K) |
111 | #define TS72XX_REDBOOT_PART_SIZE (SZ_2M + SZ_1M) | 109 | #define TS72XX_REDBOOT_PART_SIZE (SZ_2M + SZ_1M) |
112 | 110 | ||
@@ -134,7 +132,6 @@ static struct platform_nand_data ts72xx_nand_data = { | |||
134 | .nr_chips = 1, | 132 | .nr_chips = 1, |
135 | .chip_offset = 0, | 133 | .chip_offset = 0, |
136 | .chip_delay = 15, | 134 | .chip_delay = 15, |
137 | .part_probe_types = ts72xx_nand_part_probes, | ||
138 | .partitions = ts72xx_nand_parts, | 135 | .partitions = ts72xx_nand_parts, |
139 | .nr_partitions = ARRAY_SIZE(ts72xx_nand_parts), | 136 | .nr_partitions = ARRAY_SIZE(ts72xx_nand_parts), |
140 | }, | 137 | }, |
diff --git a/arch/arm/mach-ixp4xx/ixdp425-setup.c b/arch/arm/mach-ixp4xx/ixdp425-setup.c index 3d742aee1773..fccfc73e69f1 100644 --- a/arch/arm/mach-ixp4xx/ixdp425-setup.c +++ b/arch/arm/mach-ixp4xx/ixdp425-setup.c | |||
@@ -60,8 +60,6 @@ static struct platform_device ixdp425_flash = { | |||
60 | #if defined(CONFIG_MTD_NAND_PLATFORM) || \ | 60 | #if defined(CONFIG_MTD_NAND_PLATFORM) || \ |
61 | defined(CONFIG_MTD_NAND_PLATFORM_MODULE) | 61 | defined(CONFIG_MTD_NAND_PLATFORM_MODULE) |
62 | 62 | ||
63 | const char *part_probes[] = { "cmdlinepart", NULL }; | ||
64 | |||
65 | static struct mtd_partition ixdp425_partitions[] = { | 63 | static struct mtd_partition ixdp425_partitions[] = { |
66 | { | 64 | { |
67 | .name = "ixp400 NAND FS 0", | 65 | .name = "ixp400 NAND FS 0", |
@@ -101,7 +99,6 @@ static struct platform_nand_data ixdp425_flash_nand_data = { | |||
101 | .nr_chips = 1, | 99 | .nr_chips = 1, |
102 | .chip_delay = 30, | 100 | .chip_delay = 30, |
103 | .options = NAND_NO_AUTOINCR, | 101 | .options = NAND_NO_AUTOINCR, |
104 | .part_probe_types = part_probes, | ||
105 | .partitions = ixdp425_partitions, | 102 | .partitions = ixdp425_partitions, |
106 | .nr_partitions = ARRAY_SIZE(ixdp425_partitions), | 103 | .nr_partitions = ARRAY_SIZE(ixdp425_partitions), |
107 | }, | 104 | }, |
diff --git a/arch/arm/mach-omap1/board-fsample.c b/arch/arm/mach-omap1/board-fsample.c index 80bd43c7f4ec..62a1e1122c30 100644 --- a/arch/arm/mach-omap1/board-fsample.c +++ b/arch/arm/mach-omap1/board-fsample.c | |||
@@ -206,14 +206,11 @@ static int nand_dev_ready(struct mtd_info *mtd) | |||
206 | return gpio_get_value(FSAMPLE_NAND_RB_GPIO_PIN); | 206 | return gpio_get_value(FSAMPLE_NAND_RB_GPIO_PIN); |
207 | } | 207 | } |
208 | 208 | ||
209 | static const char *part_probes[] = { "cmdlinepart", NULL }; | ||
210 | |||
211 | static struct platform_nand_data nand_data = { | 209 | static struct platform_nand_data nand_data = { |
212 | .chip = { | 210 | .chip = { |
213 | .nr_chips = 1, | 211 | .nr_chips = 1, |
214 | .chip_offset = 0, | 212 | .chip_offset = 0, |
215 | .options = NAND_SAMSUNG_LP_OPTIONS, | 213 | .options = NAND_SAMSUNG_LP_OPTIONS, |
216 | .part_probe_types = part_probes, | ||
217 | }, | 214 | }, |
218 | .ctrl = { | 215 | .ctrl = { |
219 | .cmd_ctrl = nand_cmd_ctl, | 216 | .cmd_ctrl = nand_cmd_ctl, |
diff --git a/arch/arm/mach-omap1/board-h2.c b/arch/arm/mach-omap1/board-h2.c index 553a2e535764..9811b27ea169 100644 --- a/arch/arm/mach-omap1/board-h2.c +++ b/arch/arm/mach-omap1/board-h2.c | |||
@@ -200,8 +200,6 @@ static int h2_nand_dev_ready(struct mtd_info *mtd) | |||
200 | return gpio_get_value(H2_NAND_RB_GPIO_PIN); | 200 | return gpio_get_value(H2_NAND_RB_GPIO_PIN); |
201 | } | 201 | } |
202 | 202 | ||
203 | static const char *h2_part_probes[] = { "cmdlinepart", NULL }; | ||
204 | |||
205 | static struct platform_nand_data h2_nand_platdata = { | 203 | static struct platform_nand_data h2_nand_platdata = { |
206 | .chip = { | 204 | .chip = { |
207 | .nr_chips = 1, | 205 | .nr_chips = 1, |
@@ -209,7 +207,6 @@ static struct platform_nand_data h2_nand_platdata = { | |||
209 | .nr_partitions = ARRAY_SIZE(h2_nand_partitions), | 207 | .nr_partitions = ARRAY_SIZE(h2_nand_partitions), |
210 | .partitions = h2_nand_partitions, | 208 | .partitions = h2_nand_partitions, |
211 | .options = NAND_SAMSUNG_LP_OPTIONS, | 209 | .options = NAND_SAMSUNG_LP_OPTIONS, |
212 | .part_probe_types = h2_part_probes, | ||
213 | }, | 210 | }, |
214 | .ctrl = { | 211 | .ctrl = { |
215 | .cmd_ctrl = h2_nand_cmd_ctl, | 212 | .cmd_ctrl = h2_nand_cmd_ctl, |
diff --git a/arch/arm/mach-omap1/board-h3.c b/arch/arm/mach-omap1/board-h3.c index 4c19f4c06851..94858dc8c840 100644 --- a/arch/arm/mach-omap1/board-h3.c +++ b/arch/arm/mach-omap1/board-h3.c | |||
@@ -202,8 +202,6 @@ static int nand_dev_ready(struct mtd_info *mtd) | |||
202 | return gpio_get_value(H3_NAND_RB_GPIO_PIN); | 202 | return gpio_get_value(H3_NAND_RB_GPIO_PIN); |
203 | } | 203 | } |
204 | 204 | ||
205 | static const char *part_probes[] = { "cmdlinepart", NULL }; | ||
206 | |||
207 | static struct platform_nand_data nand_platdata = { | 205 | static struct platform_nand_data nand_platdata = { |
208 | .chip = { | 206 | .chip = { |
209 | .nr_chips = 1, | 207 | .nr_chips = 1, |
@@ -211,7 +209,6 @@ static struct platform_nand_data nand_platdata = { | |||
211 | .nr_partitions = ARRAY_SIZE(nand_partitions), | 209 | .nr_partitions = ARRAY_SIZE(nand_partitions), |
212 | .partitions = nand_partitions, | 210 | .partitions = nand_partitions, |
213 | .options = NAND_SAMSUNG_LP_OPTIONS, | 211 | .options = NAND_SAMSUNG_LP_OPTIONS, |
214 | .part_probe_types = part_probes, | ||
215 | }, | 212 | }, |
216 | .ctrl = { | 213 | .ctrl = { |
217 | .cmd_ctrl = nand_cmd_ctl, | 214 | .cmd_ctrl = nand_cmd_ctl, |
diff --git a/arch/arm/mach-omap1/board-perseus2.c b/arch/arm/mach-omap1/board-perseus2.c index 76d4ee05a814..eb8b2c7d871e 100644 --- a/arch/arm/mach-omap1/board-perseus2.c +++ b/arch/arm/mach-omap1/board-perseus2.c | |||
@@ -164,14 +164,11 @@ static int nand_dev_ready(struct mtd_info *mtd) | |||
164 | return gpio_get_value(P2_NAND_RB_GPIO_PIN); | 164 | return gpio_get_value(P2_NAND_RB_GPIO_PIN); |
165 | } | 165 | } |
166 | 166 | ||
167 | static const char *part_probes[] = { "cmdlinepart", NULL }; | ||
168 | |||
169 | static struct platform_nand_data nand_data = { | 167 | static struct platform_nand_data nand_data = { |
170 | .chip = { | 168 | .chip = { |
171 | .nr_chips = 1, | 169 | .nr_chips = 1, |
172 | .chip_offset = 0, | 170 | .chip_offset = 0, |
173 | .options = NAND_SAMSUNG_LP_OPTIONS, | 171 | .options = NAND_SAMSUNG_LP_OPTIONS, |
174 | .part_probe_types = part_probes, | ||
175 | }, | 172 | }, |
176 | .ctrl = { | 173 | .ctrl = { |
177 | .cmd_ctrl = nand_cmd_ctl, | 174 | .cmd_ctrl = nand_cmd_ctl, |
diff --git a/arch/arm/mach-orion5x/ts78xx-setup.c b/arch/arm/mach-orion5x/ts78xx-setup.c index c96f37472eda..53e595ed0bb9 100644 --- a/arch/arm/mach-orion5x/ts78xx-setup.c +++ b/arch/arm/mach-orion5x/ts78xx-setup.c | |||
@@ -245,8 +245,6 @@ static void ts78xx_ts_nand_read_buf(struct mtd_info *mtd, | |||
245 | readsb(io_base, buf, len); | 245 | readsb(io_base, buf, len); |
246 | } | 246 | } |
247 | 247 | ||
248 | const char *ts_nand_part_probes[] = { "cmdlinepart", NULL }; | ||
249 | |||
250 | static struct mtd_partition ts78xx_ts_nand_parts[] = { | 248 | static struct mtd_partition ts78xx_ts_nand_parts[] = { |
251 | { | 249 | { |
252 | .name = "mbr", | 250 | .name = "mbr", |
@@ -271,7 +269,6 @@ static struct mtd_partition ts78xx_ts_nand_parts[] = { | |||
271 | static struct platform_nand_data ts78xx_ts_nand_data = { | 269 | static struct platform_nand_data ts78xx_ts_nand_data = { |
272 | .chip = { | 270 | .chip = { |
273 | .nr_chips = 1, | 271 | .nr_chips = 1, |
274 | .part_probe_types = ts_nand_part_probes, | ||
275 | .partitions = ts78xx_ts_nand_parts, | 272 | .partitions = ts78xx_ts_nand_parts, |
276 | .nr_partitions = ARRAY_SIZE(ts78xx_ts_nand_parts), | 273 | .nr_partitions = ARRAY_SIZE(ts78xx_ts_nand_parts), |
277 | .chip_delay = 15, | 274 | .chip_delay = 15, |
diff --git a/arch/arm/mach-pxa/balloon3.c b/arch/arm/mach-pxa/balloon3.c index c35456f02acb..7ece2625914c 100644 --- a/arch/arm/mach-pxa/balloon3.c +++ b/arch/arm/mach-pxa/balloon3.c | |||
@@ -679,8 +679,6 @@ static struct mtd_partition balloon3_partition_info[] = { | |||
679 | }, | 679 | }, |
680 | }; | 680 | }; |
681 | 681 | ||
682 | static const char *balloon3_part_probes[] = { "cmdlinepart", NULL }; | ||
683 | |||
684 | struct platform_nand_data balloon3_nand_pdata = { | 682 | struct platform_nand_data balloon3_nand_pdata = { |
685 | .chip = { | 683 | .chip = { |
686 | .nr_chips = 4, | 684 | .nr_chips = 4, |
@@ -688,7 +686,6 @@ struct platform_nand_data balloon3_nand_pdata = { | |||
688 | .nr_partitions = ARRAY_SIZE(balloon3_partition_info), | 686 | .nr_partitions = ARRAY_SIZE(balloon3_partition_info), |
689 | .partitions = balloon3_partition_info, | 687 | .partitions = balloon3_partition_info, |
690 | .chip_delay = 50, | 688 | .chip_delay = 50, |
691 | .part_probe_types = balloon3_part_probes, | ||
692 | }, | 689 | }, |
693 | .ctrl = { | 690 | .ctrl = { |
694 | .hwcontrol = 0, | 691 | .hwcontrol = 0, |
diff --git a/arch/arm/mach-pxa/em-x270.c b/arch/arm/mach-pxa/em-x270.c index 16ec557b8e43..2771ad43e258 100644 --- a/arch/arm/mach-pxa/em-x270.c +++ b/arch/arm/mach-pxa/em-x270.c | |||
@@ -338,8 +338,6 @@ static struct mtd_partition em_x270_partition_info[] = { | |||
338 | }, | 338 | }, |
339 | }; | 339 | }; |
340 | 340 | ||
341 | static const char *em_x270_part_probes[] = { "cmdlinepart", NULL }; | ||
342 | |||
343 | struct platform_nand_data em_x270_nand_platdata = { | 341 | struct platform_nand_data em_x270_nand_platdata = { |
344 | .chip = { | 342 | .chip = { |
345 | .nr_chips = 1, | 343 | .nr_chips = 1, |
@@ -347,7 +345,6 @@ struct platform_nand_data em_x270_nand_platdata = { | |||
347 | .nr_partitions = ARRAY_SIZE(em_x270_partition_info), | 345 | .nr_partitions = ARRAY_SIZE(em_x270_partition_info), |
348 | .partitions = em_x270_partition_info, | 346 | .partitions = em_x270_partition_info, |
349 | .chip_delay = 20, | 347 | .chip_delay = 20, |
350 | .part_probe_types = em_x270_part_probes, | ||
351 | }, | 348 | }, |
352 | .ctrl = { | 349 | .ctrl = { |
353 | .hwcontrol = 0, | 350 | .hwcontrol = 0, |
diff --git a/arch/arm/mach-pxa/palmtx.c b/arch/arm/mach-pxa/palmtx.c index 9507605ed547..0da35dccfd89 100644 --- a/arch/arm/mach-pxa/palmtx.c +++ b/arch/arm/mach-pxa/palmtx.c | |||
@@ -268,8 +268,6 @@ static struct mtd_partition palmtx_partition_info[] = { | |||
268 | }, | 268 | }, |
269 | }; | 269 | }; |
270 | 270 | ||
271 | static const char *palmtx_part_probes[] = { "cmdlinepart", NULL }; | ||
272 | |||
273 | struct platform_nand_data palmtx_nand_platdata = { | 271 | struct platform_nand_data palmtx_nand_platdata = { |
274 | .chip = { | 272 | .chip = { |
275 | .nr_chips = 1, | 273 | .nr_chips = 1, |
@@ -277,7 +275,6 @@ struct platform_nand_data palmtx_nand_platdata = { | |||
277 | .nr_partitions = ARRAY_SIZE(palmtx_partition_info), | 275 | .nr_partitions = ARRAY_SIZE(palmtx_partition_info), |
278 | .partitions = palmtx_partition_info, | 276 | .partitions = palmtx_partition_info, |
279 | .chip_delay = 20, | 277 | .chip_delay = 20, |
280 | .part_probe_types = palmtx_part_probes, | ||
281 | }, | 278 | }, |
282 | .ctrl = { | 279 | .ctrl = { |
283 | .cmd_ctrl = palmtx_nand_cmd_ctl, | 280 | .cmd_ctrl = palmtx_nand_cmd_ctl, |