提交 2511b2ed 编写于 作者: H Heinrich Schuchardt 提交者: Marek Vasut

musb: properly detect failed initialization of controller

We want to check the result of musb_init_controller
and not the address were the result is stored.
Signed-off-by: NHeinrich Schuchardt <xypron.glpk@gmx.de>
上级 3c476d84
......@@ -446,7 +446,7 @@ int musb_register(struct musb_hdrc_platform_data *plat, void *bdata,
}
*musbp = musb_init_controller(plat, (struct device *)bdata, ctl_regs);
if (!musbp) {
if (!*musbp) {
printf("Failed to init the controller\n");
return -EIO;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册