drivers: core: do not use nand node from kernel dtb
Do not use nand node from kernel dtb, or the driver will be initialized twice. Change-Id: Iae3e76094d074549e6f52c20261ceefa9b98be1b Signed-off-by: Yifeng Zhao <zyf@rock-chips.com>
This commit is contained in:
parent
adde78bf70
commit
541f90ebf1
|
|
@ -51,8 +51,8 @@ static int device_bind_common(struct udevice *parent, const struct driver *drv,
|
|||
}
|
||||
|
||||
#ifdef CONFIG_USING_KERNEL_DTB
|
||||
/* Do not use mmc node from kernel dtb */
|
||||
if(drv->id == UCLASS_MMC)
|
||||
/* Do not use mmc node and nand node from kernel dtb */
|
||||
if(drv->id == UCLASS_MMC || drv->id == UCLASS_RKNAND)
|
||||
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