mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-03-16 12:14:06 +00:00
soc: amlogic: use name instead of index as criterion
The variate 'index' could be equal to zero in some SoCs. Such as C3 SoC, PWRC_C3_NNA_ID be defined zero. Use 'name' instead of 'index' as criterion. Signed-off-by: Xianwei Zhao <xianwei.zhao@amlogic.com> Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org> Reviewed-by: Dmitry Rokosov <ddrokosov@sberdevices.ru> Link: https://lore.kernel.org/r/20230707003710.2667989-2-xianwei.zhao@amlogic.com Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
This commit is contained in:
parent
06c2afb862
commit
fadf181800
1 changed files with 1 additions and 1 deletions
|
@ -179,7 +179,7 @@ static int meson_secure_pwrc_probe(struct platform_device *pdev)
|
|||
for (i = 0 ; i < match->count ; ++i) {
|
||||
struct meson_secure_pwrc_domain *dom = &pwrc->domains[i];
|
||||
|
||||
if (!match->domains[i].index)
|
||||
if (!match->domains[i].name)
|
||||
continue;
|
||||
|
||||
dom->pwrc = pwrc;
|
||||
|
|
Loading…
Add table
Reference in a new issue