OPP: Remove genpd_virt_dev_lock
authorViresh Kumar <viresh.kumar@linaro.org>
Thu, 12 Oct 2023 06:20:59 +0000 (11:50 +0530)
committerViresh Kumar <viresh.kumar@linaro.org>
Tue, 17 Oct 2023 05:41:28 +0000 (11:11 +0530)
commit48b5aaec596d9a2a22c97a1e2aa56103e0c72d38
treeb90d554797d2c6d58232ca36a2632c66eac41a67
parentc2bebf98045f05b3ff596e060c8777b5356e4826
OPP: Remove genpd_virt_dev_lock

All the config operations for OPP tables share common code paths now and
none of the other ones have such protection in place. Either all should
have it or none.

The understanding here is that user won't clear the OPP configs while
still using them and so such a case won't happen. We can always come
back and use a wider lock for all resource types if required.

Also fix the error on failing to allocate memory.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Reviewed-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/opp/core.c
drivers/opp/opp.h