ddr: altera: sdram: Switch to generic_hweight32()
authorMarek Vasut <marex@denx.de>
Sat, 1 Aug 2015 16:46:55 +0000 (18:46 +0200)
committerLothar Waßmann <LW@KARO-electronics.de>
Thu, 10 Sep 2015 06:17:34 +0000 (08:17 +0200)
Use generic function instead of CPU-specific one.

Signed-off-by: Marek Vasut <marex@denx.de>
drivers/ddr/altera/sdram.c

index 474df42..9e6acfe 100644 (file)
@@ -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);