Code Review
/
kvmfornfv.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
| inline |
side by side
Kernel bump from 4.1.3-rt to 4.1.7-rt.
[kvmfornfv.git]
/
kernel
/
drivers
/
usb
/
phy
/
phy-mxs-usb.c
diff --git
a/kernel/drivers/usb/phy/phy-mxs-usb.c
b/kernel/drivers/usb/phy/phy-mxs-usb.c
index
8f7cb06
..
3fcc048
100644
(file)
--- a/
kernel/drivers/usb/phy/phy-mxs-usb.c
+++ b/
kernel/drivers/usb/phy/phy-mxs-usb.c
@@
-217,6
+217,9
@@
static bool mxs_phy_get_vbus_status(struct mxs_phy *mxs_phy)
{
unsigned int vbus_value;
+ if (!mxs_phy->regmap_anatop)
+ return false;
+
if (mxs_phy->port_id == 0)
regmap_read(mxs_phy->regmap_anatop,
ANADIG_USB1_VBUS_DET_STAT,