ddr: altera: sdram: Switch to generic_hweight32()
Use generic function instead of CPU-specific one.
Signed-off-by: Marek Vasut <marex@denx.de>
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 @@
* 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);