diff options
author | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | 2007-01-30 03:45:55 -0500 |
---|---|---|
committer | David Woodhouse <dwmw2@infradead.org> | 2007-02-09 10:26:37 -0500 |
commit | d416085572eb6a44fd2cf29fd7aed83ffc95fd88 (patch) | |
tree | af94b7823ede57c0590c6ea42b6e94e037ecab41 /drivers/mtd/chips | |
parent | 992c9d24c417afce9792da18f8e664c6b9802c5c (diff) |
[MTD] [NOR] Intel: remove ugly PROGREGION macros
Remove ugly and weird MTD_PROGREGION_CTRLMODE_VALID() and
MTD_PROGREGION_CTRLMODE_INVALID() macros. There is only one
user of them and they are used locally just for printing.
Anyway, this patch is a preparation for removing mtd->ecctype
and mtd->eccsize, but these macros use them. Fix this.
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Diffstat (limited to 'drivers/mtd/chips')
-rw-r--r-- | drivers/mtd/chips/cfi_cmdset_0001.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/mtd/chips/cfi_cmdset_0001.c b/drivers/mtd/chips/cfi_cmdset_0001.c index d40262518b25..f334959a335b 100644 --- a/drivers/mtd/chips/cfi_cmdset_0001.c +++ b/drivers/mtd/chips/cfi_cmdset_0001.c | |||
@@ -560,13 +560,11 @@ static int cfi_intelext_partition_fixup(struct mtd_info *mtd, | |||
560 | struct cfi_intelext_programming_regioninfo *prinfo; | 560 | struct cfi_intelext_programming_regioninfo *prinfo; |
561 | prinfo = (struct cfi_intelext_programming_regioninfo *)&extp->extra[offs]; | 561 | prinfo = (struct cfi_intelext_programming_regioninfo *)&extp->extra[offs]; |
562 | mtd->writesize = cfi->interleave << prinfo->ProgRegShift; | 562 | mtd->writesize = cfi->interleave << prinfo->ProgRegShift; |
563 | MTD_PROGREGION_CTRLMODE_VALID(mtd) = cfi->interleave * prinfo->ControlValid; | ||
564 | MTD_PROGREGION_CTRLMODE_INVALID(mtd) = cfi->interleave * prinfo->ControlInvalid; | ||
565 | mtd->flags &= ~MTD_BIT_WRITEABLE; | 563 | mtd->flags &= ~MTD_BIT_WRITEABLE; |
566 | printk(KERN_DEBUG "%s: program region size/ctrl_valid/ctrl_inval = %d/%d/%d\n", | 564 | printk(KERN_DEBUG "%s: program region size/ctrl_valid/ctrl_inval = %d/%d/%d\n", |
567 | map->name, mtd->writesize, | 565 | map->name, mtd->writesize, |
568 | MTD_PROGREGION_CTRLMODE_VALID(mtd), | 566 | cfi->interleave * prinfo->ControlValid, |
569 | MTD_PROGREGION_CTRLMODE_INVALID(mtd)); | 567 | cfi->interleave * prinfo->ControlInvalid); |
570 | } | 568 | } |
571 | 569 | ||
572 | /* | 570 | /* |