File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -217,14 +217,6 @@ static FAR struct regulator_dev_s *regulator_dev_lookup(const char *supply)
217
217
}
218
218
219
219
regulator_unlock (& g_reg_lock , flags );
220
-
221
- #if defined(CONFIG_REGULATOR_RPMSG )
222
- if (rdev_found == NULL && strchr (supply , '/' ))
223
- {
224
- rdev_found = regulator_rpmsg_get (supply );
225
- }
226
- #endif
227
-
228
220
return rdev_found ;
229
221
}
230
222
@@ -569,6 +561,14 @@ FAR struct regulator_s *regulator_get(FAR const char *id)
569
561
}
570
562
571
563
rdev = regulator_dev_lookup (id );
564
+
565
+ #if defined(CONFIG_REGULATOR_RPMSG )
566
+ if (rdev == NULL && strchr (id , '/' ))
567
+ {
568
+ rdev = regulator_rpmsg_get (id );
569
+ }
570
+ #endif
571
+
572
572
if (rdev == NULL )
573
573
{
574
574
pwrerr ("regulator %s not found\n" , id );
You can’t perform that action at this time.
0 commit comments