core: device_bind_common: don't bind UCLASS_SPI_FLASH again
Change-Id: Ie4cfe40398fc1e483b558832663bc50683510ac0 Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
This commit is contained in:
parent
8bea6fa8fe
commit
d24a078f3f
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Reference in New Issue