]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
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 474df4265417eb6d9d20a8248864d1c566c8d418..9e6acfe13b773fe137f39ffde63da0d548a60e06 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.
         */
         * 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);
 
 
        debug("rows workaround - bits %d\n", bits);