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.comSigned-off-by: Neil Armstrong <neil.armstrong@linaro.org>
Showing
Please register or sign in to comment