Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 176928
b: refs/heads/master
c: 782e571
h: refs/heads/master
v: v3
  • Loading branch information
Akinobu Mita authored and David Woodhouse committed Nov 20, 2009
1 parent f10b7e6 commit 58067b1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8ce110ac19bc88b82e3feacfbb3a2ee08a07fe22
refs/heads/master: 782e5711d61b2cda45dea447badba3ab07c236f0
7 changes: 3 additions & 4 deletions trunk/drivers/mtd/maps/vmu-flash.c
Original file line number Diff line number Diff line change
Expand Up @@ -612,10 +612,9 @@ static int __devinit vmu_connect(struct maple_device *mdev)

test_flash_data = be32_to_cpu(mdev->devinfo.function);
/* Need to count how many bits are set - to find out which
* function_data element has details of the memory card:
* using Brian Kernighan's/Peter Wegner's method */
for (c = 0; test_flash_data; c++)
test_flash_data &= test_flash_data - 1;
* function_data element has details of the memory card
*/
c = hweight_long(test_flash_data);

basic_flash_data = be32_to_cpu(mdev->devinfo.function_data[c - 1]);

Expand Down

0 comments on commit 58067b1

Please sign in to comment.