From: Bin Meng Date: Mon, 31 Jul 2017 02:24:00 +0000 (-0700) Subject: block: ide: Fix build error when CONFIG_BLK is on X-Git-Tag: baikal/mips/sdk5.9~4169^2~2 X-Git-Url: https://git.baikalelectronics.ru/sdk/?a=commitdiff_plain;h=220dd8da9b53fe4316fffb6dd82260387653ab2f;p=uboot.git block: ide: Fix build error when CONFIG_BLK is on Add missing #ifndef CONFIG_BLK to wrap dev_desc->block_read. Signed-off-by: Bin Meng Reviewed-by: Simon Glass --- diff --git a/drivers/block/ide.c b/drivers/block/ide.c index 308ad7396b..edcf87b8c1 100644 --- a/drivers/block/ide.c +++ b/drivers/block/ide.c @@ -469,7 +469,9 @@ static void atapi_inquiry(struct blk_desc *dev_desc) device = dev_desc->devnum; dev_desc->type = DEV_TYPE_UNKNOWN; /* not yet valid */ +#ifndef CONFIG_BLK dev_desc->block_read = atapi_read; +#endif memset(ccb, 0, sizeof(ccb)); memset(iobuf, 0, sizeof(iobuf));