diff --git a/drivers/core/device.c b/drivers/core/device.c index f2261d7c94..21eb2527a0 100644 --- a/drivers/core/device.c +++ b/drivers/core/device.c @@ -52,8 +52,9 @@ static int device_bind_common(struct udevice *parent, const struct driver *drv, #ifdef CONFIG_USING_KERNEL_DTB if (gd->flags & GD_FLG_RELOC) { - /* For mmc and nand, just update from kernel dtb instead bind again*/ - if (drv->id == UCLASS_MMC || drv->id == UCLASS_RKNAND) { + /* For mmc/nand/spiflash, just update from kernel dtb instead bind again*/ + if (drv->id == UCLASS_MMC || drv->id == UCLASS_RKNAND || + drv->id == UCLASS_SPI_FLASH) { list_for_each_entry(dev, &uc->dev_head, uclass_node) { if (!strcmp(name, dev->name)) { debug("%s do not bind dev already in list %s\n",