summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHeinrich Schuchardt <xypron.glpk@gmx.de>2017-04-15 13:46:22 +0200
committerMarek Vasut <marek.vasut+renesas@gmail.com>2017-04-25 12:50:11 +0200
commit2511b2ed4df36467898952aa7825abbe8d0a211f (patch)
tree23648027b48e7130a3d5d833c149fd3c59604794
parent3c476d841daa491f87c8f07851038afbdf4d90a8 (diff)
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: Heinrich Schuchardt <xypron.glpk@gmx.de>
-rw-r--r--drivers/usb/musb-new/musb_uboot.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/musb-new/musb_uboot.c b/drivers/usb/musb-new/musb_uboot.c
index ea71f75947..8662c0ff70 100644
--- a/drivers/usb/musb-new/musb_uboot.c
+++ b/drivers/usb/musb-new/musb_uboot.c
@@ -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;
}