git.openpandora.org
/
pandora-u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0a8a4b8
)
usb: musb-new: sunxi: fix error check
author
Sam Edwards
<cfsworks@gmail.com>
Mon, 5 Jun 2023 17:19:37 +0000
(11:19 -0600)
committer
Marek Vasut
<marex@denx.de>
Wed, 7 Jun 2023 21:38:51 +0000
(23:38 +0200)
The `musb_register` function returns some ERR_PTR(...) on failure,
not NULL, so update the check here appropriately.
Signed-off-by: Sam Edwards <CFSworks@gmail.com>
Reviewed-by: Marek Vasut <marex@denx.de>
drivers/usb/musb-new/sunxi.c
patch
|
blob
|
history
diff --git
a/drivers/usb/musb-new/sunxi.c
b/drivers/usb/musb-new/sunxi.c
index
dc4cfc2
..
dac98ae
100644
(file)
--- a/
drivers/usb/musb-new/sunxi.c
+++ b/
drivers/usb/musb-new/sunxi.c
@@
-486,7
+486,7
@@
static int musb_usb_probe(struct udevice *dev)
#else
pdata.mode = MUSB_PERIPHERAL;
host->host = musb_register(&pdata, &glue->dev, base);
- if (
!host->host
)
+ if (
IS_ERR_OR_NULL(host->host)
)
return -EIO;
printf("Allwinner mUSB OTG (Peripheral)\n");