ddrphy_init_read_msg_block() is empty. Remove it. Signed-off-by: Sascha Hauer <s.hauer@xxxxxxxxxxxxxx> --- drivers/ddr/imx/ddrphy_train.c | 2 -- drivers/ddr/imx/ddrphy_utils.c | 4 ---- include/soc/imx8m/ddr.h | 1 - 3 files changed, 7 deletions(-) diff --git a/drivers/ddr/imx/ddrphy_train.c b/drivers/ddr/imx/ddrphy_train.c index af4d710dc0..302acdfe62 100644 --- a/drivers/ddr/imx/ddrphy_train.c +++ b/drivers/ddr/imx/ddrphy_train.c @@ -156,8 +156,6 @@ int ddr_cfg_phy(struct dram_controller *dram, struct dram_timing_info *dram_timi /* Read the Message Block results */ dwc_ddrphy_apb_wr(dram, 0xd0000, 0x0); - ddrphy_init_read_msg_block(fsp_msg->fw_type); - if (fsp_msg->fw_type != FW_2D_IMAGE) dram->get_trained_CDD(dram, i); diff --git a/drivers/ddr/imx/ddrphy_utils.c b/drivers/ddr/imx/ddrphy_utils.c index 4577547113..5f80b8fdc1 100644 --- a/drivers/ddr/imx/ddrphy_utils.c +++ b/drivers/ddr/imx/ddrphy_utils.c @@ -101,7 +101,3 @@ int wait_ddrphy_training_complete(void) } } } - -void ddrphy_init_read_msg_block(enum fw_type type) -{ -} diff --git a/include/soc/imx8m/ddr.h b/include/soc/imx8m/ddr.h index bdf0f25727..0a2a7b0e2f 100644 --- a/include/soc/imx8m/ddr.h +++ b/include/soc/imx8m/ddr.h @@ -456,7 +456,6 @@ void dram_config_save(struct dram_timing_info *info, unsigned long base); /* utils function for ddr phy training */ int wait_ddrphy_training_complete(void); -void ddrphy_init_read_msg_block(enum fw_type fw_type); #define reg32_write(a, v) writel(v, a) #define reg32_read(a) readl(a) -- 2.39.2