The new config option that enables this code guarantees ROCKCHIP_EXTERNAL_TPL, and is implied by these four SoC configs, making these checks redundant.
Signed-off-by: Aaron Griffith <[email protected]> --- arch/arm/mach-rockchip/sdram.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/arch/arm/mach-rockchip/sdram.c b/arch/arm/mach-rockchip/sdram.c index f549baaa8e7e0664029f37de012dd22dfe92b07f..2f39928bcbda2936fb4f079bbb72fa13f80af6c0 100644 --- a/arch/arm/mach-rockchip/sdram.c +++ b/arch/arm/mach-rockchip/sdram.c @@ -109,15 +109,6 @@ static int rockchip_dram_init_banksize(void) u32 calc_hash; u8 i, j; - if (!IS_ENABLED(CONFIG_ROCKCHIP_RK3588) && - !IS_ENABLED(CONFIG_ROCKCHIP_RK3576) && - !IS_ENABLED(CONFIG_ROCKCHIP_RK3568) && - !IS_ENABLED(CONFIG_ROCKCHIP_RK3528)) - return -ENOTSUPP; - - if (!IS_ENABLED(CONFIG_ROCKCHIP_EXTERNAL_TPL)) - return -ENOTSUPP; - /* Find DDR_MEM tag */ while (addr < (u32 *)ATAGS_PHYS_END) { tag_h = (const struct tag_header *)addr; -- 2.47.3

