From: Marek Vasut Date: Sat, 1 Aug 2015 16:46:55 +0000 (+0200) Subject: ddr: altera: sdram: Switch to generic_hweight32() X-Git-Tag: v2015.10-rc2~214 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=58d86144d49b0b8baf421807fb6fff693e979378;p=u-boot ddr: altera: sdram: Switch to generic_hweight32() Use generic function instead of CPU-specific one. Signed-off-by: Marek Vasut --- 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);