diff options
author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-06-20 11:25:44 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-06-20 11:25:44 -0400 |
commit | af52739b922f656eb1f39016fabaabe4baeda2e2 (patch) | |
tree | 79a7aa810d0493cd0cf4adebac26d37f12e8b545 /drivers/base/power/opp/of.c | |
parent | 25ed6a5e97809129a1bc852b6b5c7d03baa112c4 (diff) | |
parent | 33688abb2802ff3a230bd2441f765477b94cc89e (diff) |
Merge 4.7-rc4 into staging-next
We want the fixes in here, and we can resolve a merge issue in
drivers/iio/industrialio-trigger.c
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/base/power/opp/of.c')
-rw-r--r-- | drivers/base/power/opp/of.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/drivers/base/power/opp/of.c b/drivers/base/power/opp/of.c index 94d2010558e3..1dfd3dd92624 100644 --- a/drivers/base/power/opp/of.c +++ b/drivers/base/power/opp/of.c | |||
@@ -34,7 +34,10 @@ static struct opp_table *_managed_opp(const struct device_node *np) | |||
34 | * But the OPPs will be considered as shared only if the | 34 | * But the OPPs will be considered as shared only if the |
35 | * OPP table contains a "opp-shared" property. | 35 | * OPP table contains a "opp-shared" property. |
36 | */ | 36 | */ |
37 | return opp_table->shared_opp ? opp_table : NULL; | 37 | if (opp_table->shared_opp == OPP_TABLE_ACCESS_SHARED) |
38 | return opp_table; | ||
39 | |||
40 | return NULL; | ||
38 | } | 41 | } |
39 | } | 42 | } |
40 | 43 | ||
@@ -353,7 +356,10 @@ static int _of_add_opp_table_v2(struct device *dev, struct device_node *opp_np) | |||
353 | } | 356 | } |
354 | 357 | ||
355 | opp_table->np = opp_np; | 358 | opp_table->np = opp_np; |
356 | opp_table->shared_opp = of_property_read_bool(opp_np, "opp-shared"); | 359 | if (of_property_read_bool(opp_np, "opp-shared")) |
360 | opp_table->shared_opp = OPP_TABLE_ACCESS_SHARED; | ||
361 | else | ||
362 | opp_table->shared_opp = OPP_TABLE_ACCESS_EXCLUSIVE; | ||
357 | 363 | ||
358 | mutex_unlock(&opp_table_lock); | 364 | mutex_unlock(&opp_table_lock); |
359 | 365 | ||