Merge branch 'next-devicetree' of git://git.secretlab.ca/git/linux-2.6
[pandora-kernel.git] / drivers / mtd / sm_ftl.c
index 4c21589..67822cf 100644 (file)
@@ -934,7 +934,7 @@ int sm_cache_flush(struct sm_ftl *ftl)
 
 
        /* Try to read all unread areas of the cache block*/
-       for_each_bit(sector_num, &ftl->cache_data_invalid_bitmap,
+       for_each_set_bit(sector_num, &ftl->cache_data_invalid_bitmap,
                ftl->block_size / SM_SECTOR_SIZE) {
 
                if (!sm_read_sector(ftl,