From 58d86144d49b0b8baf421807fb6fff693e979378 Mon Sep 17 00:00:00 2001 From: Marek Vasut Date: Sat, 1 Aug 2015 18:46:55 +0200 Subject: [PATCH] ddr: altera: sdram: Switch to generic_hweight32() Use generic function instead of CPU-specific one. Signed-off-by: Marek Vasut --- drivers/ddr/altera/sdram.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/ddr/altera/sdram.c b/drivers/ddr/altera/sdram.c index 474df42654..9e6acfe13b 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); -- 2.39.5