mtd: do not use mtd->sync directly
authorArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
Fri, 30 Dec 2011 14:35:35 +0000 (16:35 +0200)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Mon, 9 Jan 2012 18:26:21 +0000 (18:26 +0000)
commit327cf2922b4edf0439b219469722d2a502e37349
tree6fe4c70d0b4693950e7e20286a3b66bab82ac821
parent1dbebd32562b3c2caeca35960e5cb00bfcc12900
mtd: do not use mtd->sync directly

This patch teaches 'mtd_sync()' to do nothing when the MTD driver does
not have the '->sync()' method, which allows us to remove all direct
'mtd->sync' accesses.

Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/mtd/ftl.c
drivers/mtd/mtdblock.c
drivers/mtd/mtdchar.c
drivers/mtd/mtdswap.c
drivers/mtd/rfd_ftl.c
drivers/mtd/ubi/kapi.c
fs/jffs2/super.c
fs/logfs/dev_mtd.c
include/linux/mtd/mtd.h
This page took 0.02611 seconds and 5 git commands to generate.