diff options
| author | Marek Vasut <[email protected]> | 2015-08-01 18:46:55 +0200 |
|---|---|---|
| committer | Marek Vasut <[email protected]> | 2015-08-08 14:14:25 +0200 |
| commit | 58d86144d49b0b8baf421807fb6fff693e979378 (patch) | |
| tree | 2f591649f5197533d80da5e3d90d58ba97d83e16 /drivers | |
| parent | 03439e4064a9aff6185d081540a97e7afc32ac31 (diff) | |
ddr: altera: sdram: Switch to generic_hweight32()
Use generic function instead of CPU-specific one.
Signed-off-by: Marek Vasut <[email protected]>
Diffstat (limited to 'drivers')
| -rw-r--r-- | drivers/ddr/altera/sdram.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ddr/altera/sdram.c b/drivers/ddr/altera/sdram.c index 474df426541..9e6acfe13b7 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); |
