X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=drivers%2Fusb%2Fmusb-new%2Fmusb_uboot.c;h=8662c0ff70782bb872db836516e3e12a4c6df3a7;hb=a9f47426ced2e5057930990f3cd602b8ab936f69;hp=6ce528c81ee02ed493579f91525f3f80ccf9dd7c;hpb=9dbdc6ebd4db60effebefcf8d541cf598712e3b7;p=oweals%2Fu-boot.git diff --git a/drivers/usb/musb-new/musb_uboot.c b/drivers/usb/musb-new/musb_uboot.c index 6ce528c81e..8662c0ff70 100644 --- a/drivers/usb/musb-new/musb_uboot.c +++ b/drivers/usb/musb-new/musb_uboot.c @@ -4,7 +4,7 @@ #ifdef CONFIG_ARCH_SUNXI #include #endif -#include +#include #include #include @@ -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; }