diff options
author | Artem Bityutskiy <artem.bityutskiy@linux.intel.com> | 2011-12-23 12:03:12 -0500 |
---|---|---|
committer | David Woodhouse <David.Woodhouse@intel.com> | 2012-01-09 13:25:35 -0500 |
commit | 85f2f2a809d658c15b574df02ede92090f45a1f2 (patch) | |
tree | 7d4ae7ca646db856aca7f2509c404b9d938fee0b /drivers/mtd/mtdblock.c | |
parent | b0a31f7b2a668f00a8d0546dfeed65fac871b2da (diff) |
mtd: introduce mtd_sync interface
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'drivers/mtd/mtdblock.c')
-rw-r--r-- | drivers/mtd/mtdblock.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mtd/mtdblock.c b/drivers/mtd/mtdblock.c index ac7f1f1faa2d..496e1a6e8029 100644 --- a/drivers/mtd/mtdblock.c +++ b/drivers/mtd/mtdblock.c | |||
@@ -323,7 +323,7 @@ static int mtdblock_release(struct mtd_blktrans_dev *mbd) | |||
323 | if (!--mtdblk->count) { | 323 | if (!--mtdblk->count) { |
324 | /* It was the last usage. Free the cache */ | 324 | /* It was the last usage. Free the cache */ |
325 | if (mbd->mtd->sync) | 325 | if (mbd->mtd->sync) |
326 | mbd->mtd->sync(mbd->mtd); | 326 | mtd_sync(mbd->mtd); |
327 | vfree(mtdblk->cache_data); | 327 | vfree(mtdblk->cache_data); |
328 | } | 328 | } |
329 | 329 | ||
@@ -343,7 +343,7 @@ static int mtdblock_flush(struct mtd_blktrans_dev *dev) | |||
343 | mutex_unlock(&mtdblk->cache_mutex); | 343 | mutex_unlock(&mtdblk->cache_mutex); |
344 | 344 | ||
345 | if (dev->mtd->sync) | 345 | if (dev->mtd->sync) |
346 | dev->mtd->sync(dev->mtd); | 346 | mtd_sync(dev->mtd); |
347 | return 0; | 347 | return 0; |
348 | } | 348 | } |
349 | 349 | ||