From 66cf3cb88e161702e6bb8e1a98a79fc0c9e564d5 Mon Sep 17 00:00:00 2001 From: Charles Manning Date: Wed, 15 Dec 2010 12:41:45 +1300 Subject: [PATCH] yaffs: Change renaming count_bits to hweight8 Some conditional compilations missed in the first round... Signed-off-by: Charles Manning --- yaffs_mtdif1_multi.c | 2 +- yaffs_mtdif1_single.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/yaffs_mtdif1_multi.c b/yaffs_mtdif1_multi.c index 603dc97..cf9c54c 100644 --- a/yaffs_mtdif1_multi.c +++ b/yaffs_mtdif1_multi.c @@ -238,7 +238,7 @@ int nandmtd1_read_chunk_tags(struct yaffs_dev *dev, deleted = !pt1.deleted; pt1.deleted = 1; #else - deleted = (yaffs_count_bits(((u8 *) & pt1)[8]) < 7); + deleted = (hweight8(((u8 *) & pt1)[8]) < 7); #endif /* Check the packed tags mini-ECC and correct if necessary/possible. diff --git a/yaffs_mtdif1_single.c b/yaffs_mtdif1_single.c index 5108369..740f7f6 100644 --- a/yaffs_mtdif1_single.c +++ b/yaffs_mtdif1_single.c @@ -207,7 +207,7 @@ int nandmtd1_read_chunk_tags(struct yaffs_dev *dev, deleted = !pt1.deleted; pt1.deleted = 1; #else - deleted = (yaffs_count_bits(((u8 *) & pt1)[8]) < 7); + deleted = (hweight8(((u8 *) & pt1)[8]) < 7); #endif /* Check the packed tags mini-ECC and correct if necessary/possible. -- 2.30.2