Loading drivers/mtd/mtdchar.c +2 −1 Original line number Original line Diff line number Diff line Loading @@ -135,7 +135,8 @@ static int mtd_close(struct inode *inode, struct file *file) DEBUG(MTD_DEBUG_LEVEL0, "MTD_close\n"); DEBUG(MTD_DEBUG_LEVEL0, "MTD_close\n"); if (mtd->sync) /* Only sync if opened RW */ if ((file->f_mode & 2) && mtd->sync) mtd->sync(mtd); mtd->sync(mtd); put_mtd_device(mtd); put_mtd_device(mtd); Loading Loading
drivers/mtd/mtdchar.c +2 −1 Original line number Original line Diff line number Diff line Loading @@ -135,7 +135,8 @@ static int mtd_close(struct inode *inode, struct file *file) DEBUG(MTD_DEBUG_LEVEL0, "MTD_close\n"); DEBUG(MTD_DEBUG_LEVEL0, "MTD_close\n"); if (mtd->sync) /* Only sync if opened RW */ if ((file->f_mode & 2) && mtd->sync) mtd->sync(mtd); mtd->sync(mtd); put_mtd_device(mtd); put_mtd_device(mtd); Loading