Skip to content

Commit 06f2ae3

Browse files
lumagDavid Woodhouse
authored andcommitted
CRIS: stop checking for MTD_CONCAT
As MTD_CONCAT support is becoming an integral part of MTD core, there is no need for it's special treatment. So stop checking for MTD_CONCAT availability. Acked by Jesper Nilsson <jesper.nilsson@axis.com> for merging this via the MTD tree. Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com> Acked-by: Stefan Roese <sr@denx.de> Signed-off-by: Jesper Nilsson <jesper.nilsson@axis.com> Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com> Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
1 parent a8adc3f commit 06f2ae3

4 files changed

Lines changed: 0 additions & 14 deletions

File tree

‎arch/cris/Kconfig‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,6 @@ config ETRAX_AXISFLASHMAP
275275
select MTD_CHAR
276276
select MTD_BLOCK
277277
select MTD_PARTITIONS
278-
select MTD_CONCAT
279278
select MTD_COMPLEX_MAPPINGS
280279
help
281280
This option enables MTD mapping of flash devices. Needed to use

‎arch/cris/arch-v10/drivers/axisflashmap.c‎

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,6 @@ static struct mtd_info *flash_probe(void)
234234
}
235235

236236
if (mtd_cse0 && mtd_cse1) {
237-
#ifdef CONFIG_MTD_CONCAT
238237
struct mtd_info *mtds[] = { mtd_cse0, mtd_cse1 };
239238

240239
/* Since the concatenation layer adds a small overhead we
@@ -246,11 +245,6 @@ static struct mtd_info *flash_probe(void)
246245
*/
247246
mtd_cse = mtd_concat_create(mtds, ARRAY_SIZE(mtds),
248247
"cse0+cse1");
249-
#else
250-
printk(KERN_ERR "%s and %s: Cannot concatenate due to kernel "
251-
"(mis)configuration!\n", map_cse0.name, map_cse1.name);
252-
mtd_cse = NULL;
253-
#endif
254248
if (!mtd_cse) {
255249
printk(KERN_ERR "%s and %s: Concatenation failed!\n",
256250
map_cse0.name, map_cse1.name);

‎arch/cris/arch-v32/drivers/Kconfig‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,6 @@ config ETRAX_AXISFLASHMAP
406406
select MTD_CHAR
407407
select MTD_BLOCK
408408
select MTD_PARTITIONS
409-
select MTD_CONCAT
410409
select MTD_COMPLEX_MAPPINGS
411410
help
412411
This option enables MTD mapping of flash devices. Needed to use

‎arch/cris/arch-v32/drivers/axisflashmap.c‎

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,6 @@ static struct mtd_info *flash_probe(void)
275275
}
276276

277277
if (count > 1) {
278-
#ifdef CONFIG_MTD_CONCAT
279278
/* Since the concatenation layer adds a small overhead we
280279
* could try to figure out if the chips in cse0 and cse1 are
281280
* identical and reprobe the whole cse0+cse1 window. But since
@@ -284,11 +283,6 @@ static struct mtd_info *flash_probe(void)
284283
* complicating the probing procedure.
285284
*/
286285
mtd_total = mtd_concat_create(mtds, count, "cse0+cse1");
287-
#else
288-
printk(KERN_ERR "%s and %s: Cannot concatenate due to kernel "
289-
"(mis)configuration!\n", map_cse0.name, map_cse1.name);
290-
mtd_toal = NULL;
291-
#endif
292286
if (!mtd_total) {
293287
printk(KERN_ERR "%s and %s: Concatenation failed!\n",
294288
map_cse0.name, map_cse1.name);

0 commit comments

Comments
 (0)