其他分享
首页 > 其他分享> > u-boot uclass_bind_device函数

u-boot uclass_bind_device函数

作者:互联网

int uclass_bind_device(struct udevice *dev)
{
    struct uclass *uc;
    int ret;

    uc = dev->uclass;
// list_add_tail(&dev->uclass_node, &uc->dev_head); if (dev->parent) { struct uclass_driver *uc_drv = dev->parent->uclass->uc_drv; if (uc_drv->child_post_bind) { ret = uc_drv->child_post_bind(dev); if (ret) goto err; } } return 0; err: /* There is no need to undo the parent's post_bind call */ list_del(&dev->uclass_node); return ret; }

 

标签:bind,boot,uclass,dev,drv,ret,device,uc
来源: https://www.cnblogs.com/liujunhuasd/p/15913700.html