diff options
author | Thomas Gleixner <tglx@cruncher.tec.linutronix.de> | 2006-05-27 14:36:12 -0400 |
---|---|---|
committer | Thomas Gleixner <tglx@cruncher.tec.linutronix.de> | 2006-05-29 09:06:49 -0400 |
commit | ff268fb8791cf18df536113355d7184007c269d9 (patch) | |
tree | 3a7d9fc72b28f5a0f11a2f8b08174b1bee6ea20d /drivers/mtd/onenand | |
parent | 8be834f76291fdcc0614cb84926c6910b9f2ecbc (diff) |
[MTD] NAND Consolidate oobinfo handling
The info structure for out of band data was copied into
the mtd structure. Make it a pointer and remove the ability
to set it from userspace. The position of ecc bytes is
defined by the hardware and should not be changed by software.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'drivers/mtd/onenand')
-rw-r--r-- | drivers/mtd/onenand/onenand_base.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/onenand/onenand_base.c b/drivers/mtd/onenand/onenand_base.c index 7a2419186ff4..b24bfa6e202c 100644 --- a/drivers/mtd/onenand/onenand_base.c +++ b/drivers/mtd/onenand/onenand_base.c | |||
@@ -1762,7 +1762,7 @@ int onenand_scan(struct mtd_info *mtd, int maxchips) | |||
1762 | break; | 1762 | break; |
1763 | } | 1763 | } |
1764 | 1764 | ||
1765 | memcpy(&mtd->oobinfo, this->autooob, sizeof(mtd->oobinfo)); | 1765 | mtd->oobinfo = this->autooob; |
1766 | 1766 | ||
1767 | /* Fill in remaining MTD driver data */ | 1767 | /* Fill in remaining MTD driver data */ |
1768 | mtd->type = MTD_NANDFLASH; | 1768 | mtd->type = MTD_NANDFLASH; |