Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F148951339
D50101.1789261575.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
702 B
Referenced Files
None
Subscribers
None
D50101.1789261575.diff
View Options
diff --git a/sys/arm64/rockchip/rk_iodomain.c b/sys/arm64/rockchip/rk_iodomain.c
--- a/sys/arm64/rockchip/rk_iodomain.c
+++ b/sys/arm64/rockchip/rk_iodomain.c
@@ -163,11 +163,16 @@
regulator_t supply;
uint32_t reg = 0;
uint32_t mask = 0;
- int uvolt, i;
+ int uvolt, i, rv;
for (i = 0; i < sc->conf->nsupply; i++) {
- if (regulator_get_by_ofw_property(sc->dev, sc->node,
- sc->conf->supply[i].name, &supply) != 0) {
+ rv = regulator_get_by_ofw_property(sc->dev, sc->node,
+ sc->conf->supply[i].name, &supply);
+
+ if (rv == ENOENT)
+ continue;
+
+ if (rv != 0) {
device_printf(sc->dev,
"Cannot get property for regulator %s\n",
sc->conf->supply[i].name);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Sep 13, 1:06 AM (11 h, 16 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29579371
Default Alt Text
D50101.1789261575.diff (702 B)
Attached To
Mode
D50101: rk_iodomain: Do not require optional FDT properties
Attached
Detach File
Event Timeline
Log In to Comment