diff options
author | Heinrich Schuchardt <xypron.glpk@gmx.de> | 2017-04-15 13:46:22 +0200 |
---|---|---|
committer | Marek Vasut <marek.vasut+renesas@gmail.com> | 2017-04-25 12:50:11 +0200 |
commit | 2511b2ed4df36467898952aa7825abbe8d0a211f (patch) | |
tree | 23648027b48e7130a3d5d833c149fd3c59604794 /drivers/usb/musb-new | |
parent | 3c476d841daa491f87c8f07851038afbdf4d90a8 (diff) | |
download | u-boot-2511b2ed4df36467898952aa7825abbe8d0a211f.tar.gz u-boot-2511b2ed4df36467898952aa7825abbe8d0a211f.tar.bz2 u-boot-2511b2ed4df36467898952aa7825abbe8d0a211f.zip |
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>
Diffstat (limited to 'drivers/usb/musb-new')
-rw-r--r-- | drivers/usb/musb-new/musb_uboot.c | 2 |
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; } |