Skip to content
Snippets Groups Projects
Commit 2511b2ed authored by Heinrich Schuchardt's avatar Heinrich Schuchardt Committed by Marek Vasut
Browse files

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: default avatarHeinrich Schuchardt <xypron.glpk@gmx.de>
parent 3c476d84
No related branches found
No related tags found
No related merge requests found
...@@ -446,7 +446,7 @@ int musb_register(struct musb_hdrc_platform_data *plat, void *bdata, ...@@ -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); *musbp = musb_init_controller(plat, (struct device *)bdata, ctl_regs);
if (!musbp) { if (!*musbp) {
printf("Failed to init the controller\n"); printf("Failed to init the controller\n");
return -EIO; return -EIO;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment