aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mtd/ubi/kapi.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/mtd/ubi/kapi.c')
-rw-r--r--drivers/mtd/ubi/kapi.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/mtd/ubi/kapi.c b/drivers/mtd/ubi/kapi.c
index 1a35fc5e3b40..9fdb35367fe0 100644
--- a/drivers/mtd/ubi/kapi.c
+++ b/drivers/mtd/ubi/kapi.c
@@ -714,9 +714,7 @@ int ubi_sync(int ubi_num)
714 if (!ubi) 714 if (!ubi)
715 return -ENODEV; 715 return -ENODEV;
716 716
717 if (ubi->mtd->sync) 717 mtd_sync(ubi->mtd);
718 ubi->mtd->sync(ubi->mtd);
719
720 ubi_put_device(ubi); 718 ubi_put_device(ubi);
721 return 0; 719 return 0;
722} 720}