summaryrefslogtreecommitdiff
path: root/drivers/ddr
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/ddr')
-rw-r--r--drivers/ddr/altera/sdram.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ddr/altera/sdram.c b/drivers/ddr/altera/sdram.c
index 474df42..9e6acfe 100644
--- a/drivers/ddr/altera/sdram.c
+++ b/drivers/ddr/altera/sdram.c
@@ -64,7 +64,7 @@ static int compute_errata_rows(unsigned long long memsize, int cs, int width,
* Need to see if result is ordinal power of 2 before
* attempting log2 of result.
*/
- bits = hweight32(newrows);
+ bits = generic_hweight32(newrows);
debug("rows workaround - bits %d\n", bits);