diff options
author | Stefan Roese <sr@denx.de> | 2009-05-11 18:03:55 +0400 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2009-06-12 22:45:47 +0400 |
commit | 8d2effea23e938631126a7888008a0637e13b389 (patch) | |
tree | e33073a1e09b6f5c340163a4581b81304fa3fa67 /drivers/mtd/cfi_mtd.c | |
parent | 0a57265533c412adf6024f4b4955141f4346b2b9 (diff) | |
download | u-boot-8d2effea23e938631126a7888008a0637e13b389.tar.xz |
mtd: Update MTD infrastructure to support 64bit device size
This patch brings the U-Boot MTD infrastructure in sync with the current
Linux MTD version (2.6.30-rc3). Biggest change is the 64bit device size
support and a resync of the mtdpart.c file which has seen multiple fixes
meanwhile.
Signed-off-by: Stefan Roese <sr@denx.de>
Cc: Scott Wood <scottwood@freescale.com>
Cc: Kyungmin Park <kmpark@infradead.org>
Diffstat (limited to 'drivers/mtd/cfi_mtd.c')
-rw-r--r-- | drivers/mtd/cfi_mtd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mtd/cfi_mtd.c b/drivers/mtd/cfi_mtd.c index 300517e869..c7e357b7f2 100644 --- a/drivers/mtd/cfi_mtd.c +++ b/drivers/mtd/cfi_mtd.c @@ -123,7 +123,7 @@ static void cfi_mtd_sync(struct mtd_info *mtd) */ } -static int cfi_mtd_lock(struct mtd_info *mtd, loff_t ofs, size_t len) +static int cfi_mtd_lock(struct mtd_info *mtd, loff_t ofs, uint64_t len) { flash_info_t *fi = mtd->priv; @@ -135,7 +135,7 @@ static int cfi_mtd_lock(struct mtd_info *mtd, loff_t ofs, size_t len) return 0; } -static int cfi_mtd_unlock(struct mtd_info *mtd, loff_t ofs, size_t len) +static int cfi_mtd_unlock(struct mtd_info *mtd, loff_t ofs, uint64_t len) { flash_info_t *fi = mtd->priv; |