]> git.sur5r.net Git - u-boot/commitdiff
ddr: altera: sdram: Switch to generic_hweight32()
authorMarek Vasut <marex@denx.de>
Sat, 1 Aug 2015 16:46:55 +0000 (18:46 +0200)
committerMarek Vasut <marex@denx.de>
Sat, 8 Aug 2015 12:14:25 +0000 (14:14 +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.
         */
-       bits = hweight32(newrows);
+       bits = generic_hweight32(newrows);
 
        debug("rows workaround - bits %d\n", bits);