"Das U-Boot" Source Tree
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

ram: rockchip: common: Add missing cast

test_addr is initialized as void __iomem *, but unlike test_addr1,
CFG_SYS_SDRAM_BASE is not properly casted when it is assigend.

Fix it.

Signed-off-by: Alex Bee <knaerzche@gmail.com>

authored by

Alex Bee and committed by
joshua stein
085a19a7 34469543

+1 -1
+1 -1
drivers/ram/rockchip/sdram_common.c
··· 365 365 u32 row = cap_info->cs0_row; 366 366 void __iomem *test_addr, *test_addr1; 367 367 368 - test_addr = CFG_SYS_SDRAM_BASE; 368 + test_addr = (void __iomem *)CFG_SYS_SDRAM_BASE; 369 369 test_addr1 = (void __iomem *)(CFG_SYS_SDRAM_BASE + 370 370 (0x3ul << (row + bktmp + coltmp + bw - 1ul - 1ul))); 371 371