ipq806x: enable QCE hardware crypto inside the kernel
[oweals/openwrt.git] / target / linux / ipq806x / patches-4.9 / 0048-PM-OPP-HACK-Allow-to-set-regulator-without-opp_list.patch
1 From 5c294df1715d673f94f3b0a6e1ea3a426ca35e6e Mon Sep 17 00:00:00 2001
2 From: Georgi Djakov <georgi.djakov@linaro.org>
3 Date: Thu, 28 Apr 2016 16:20:12 +0300
4 Subject: [PATCH 48/69] PM / OPP: HACK: Allow to set regulator without opp_list
5
6 Signed-off-by: Georgi Djakov <georgi.djakov@linaro.org>
7 ---
8  drivers/base/power/opp/core.c | 3 ++-
9  1 file changed, 2 insertions(+), 1 deletion(-)
10
11 --- a/drivers/base/power/opp/core.c
12 +++ b/drivers/base/power/opp/core.c
13 @@ -1339,12 +1339,13 @@ struct opp_table *dev_pm_opp_set_regulat
14                 ret = -ENOMEM;
15                 goto unlock;
16         }
17 -
18 +#if 0
19         /* This should be called before OPPs are initialized */
20         if (WARN_ON(!list_empty(&opp_table->opp_list))) {
21                 ret = -EBUSY;
22                 goto err;
23         }
24 +#endif
25  
26         /* Already have a regulator set */
27         if (WARN_ON(!IS_ERR(opp_table->regulator))) {