opp: of: Allow empty opp-table with opp-shared
authorNicola Mazzucato <nicola.mazzucato@arm.com>
Tue, 8 Dec 2020 17:42:27 +0000 (17:42 +0000)
committerViresh Kumar <viresh.kumar@linaro.org>
Wed, 9 Dec 2020 05:53:46 +0000 (11:23 +0530)
commit6ee70e8c34e37a34f4dc2c8bc06febffd375fac4
treeaa4c790bbcc63816e6edc29cdc9292447b25e4ef
parent24b3c963c0108f3da6d978d74a745c824ab551dc
opp: of: Allow empty opp-table with opp-shared

The opp binding now allows to have an empty opp table and shared-opp to
still describe that devices share v/f lines.

When initialising an empty opp table, allow such case by:
- treating such conditions with warnings in place of errors
- don't fail on empty table

Signed-off-by: Nicola Mazzucato <nicola.mazzucato@arm.com>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
drivers/opp/of.c