From: Bin Meng Date: Sun, 17 Jun 2018 12:57:50 +0000 (-0700) Subject: board_r: Do not initialize IDE when DM BLK is on X-Git-Tag: v2018.07-rc3~18^2~8 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=ec15d5f6e5e4bb718d58ec2a3753ae95abc18279;p=u-boot board_r: Do not initialize IDE when DM BLK is on With driver model philosophy, we should avoid explicitly calling driver initialization routine during boot. This updates the ram init sequence table to exclude the IDE initialization for DM BLK. Signed-off-by: Bin Meng Reviewed-by: Simon Glass --- diff --git a/common/board_r.c b/common/board_r.c index 6b297068bd..6949d4af0e 100644 --- a/common/board_r.c +++ b/common/board_r.c @@ -596,7 +596,7 @@ static int initr_pcmcia(void) } #endif -#if defined(CONFIG_IDE) +#if defined(CONFIG_IDE) && !defined(CONFIG_BLK) static int initr_ide(void) { puts("IDE: "); @@ -826,7 +826,7 @@ static init_fnc_t init_sequence_r[] = { #if defined(CONFIG_CMD_PCMCIA) && !defined(CONFIG_IDE) initr_pcmcia, #endif -#if defined(CONFIG_IDE) +#if defined(CONFIG_IDE) && !defined(CONFIG_BLK) initr_ide, #endif #ifdef CONFIG_LAST_STAGE_INIT