kernel: bump 4.14 to 4.14.48 for 18.06
[openwrt/openwrt.git] / target / linux / ipq806x / patches-4.14 / 0048-PM-OPP-HACK-Allow-to-set-regulator-without-opp_list.patch
index be39ad2373d20019477c8b70fc4ec0a3d1cd238b..4cbb4422ca7fba72a8ffb4d9e18dbb0d4e9f2821 100644 (file)
@@ -10,17 +10,17 @@ Signed-off-by: Georgi Djakov <georgi.djakov@linaro.org>
 
 --- a/drivers/base/power/opp/core.c
 +++ b/drivers/base/power/opp/core.c
-@@ -1277,11 +1277,13 @@
-       if (!opp_table)
-               return ERR_PTR(-ENOMEM);
-
+@@ -1277,11 +1277,13 @@ struct opp_table *dev_pm_opp_set_regulat
+       if (!opp_table)
+               return ERR_PTR(-ENOMEM);
 +#if 0
-       /* This should be called before OPPs are initialized */
-       if (WARN_ON(!list_empty(&opp_table->opp_list))) {
-               ret = -EBUSY;
-               goto err;
-       }
+       /* This should be called before OPPs are initialized */
+       if (WARN_ON(!list_empty(&opp_table->opp_list))) {
+               ret = -EBUSY;
+               goto err;
+       }
 +#endif
-
-       /* Already have regulators set */
-       if (opp_table->regulators) {
+       /* Already have regulators set */
+       if (opp_table->regulators) {