Skip to content

Commit af77132

Browse files
committed
soc: qcom: rpmhpd: Don't warn about sparse rpmhpd arrays
In some cases the DT binding will fully describe the set of available RPMh power-domains, but there is no reason for exposing them all in the implementation. Omitting individual data->domains is handle gracefully by of_genpd_add_provider_onecell(), so there's no reason for printing a warning when this occurs. Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org> Reviewed-by: Johan Hovold <johan+linaro@kernel.org> Link: https://lore.kernel.org/r/20220426233508.1762345-3-bjorn.andersson@linaro.org
1 parent dbfb5f9 commit af77132

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

drivers/soc/qcom/rpmhpd.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -613,10 +613,8 @@ static int rpmhpd_probe(struct platform_device *pdev)
613613
data->num_domains = num_pds;
614614

615615
for (i = 0; i < num_pds; i++) {
616-
if (!rpmhpds[i]) {
617-
dev_warn(dev, "rpmhpds[%d] is empty\n", i);
616+
if (!rpmhpds[i])
618617
continue;
619-
}
620618

621619
rpmhpds[i]->dev = dev;
622620
rpmhpds[i]->addr = cmd_db_read_addr(rpmhpds[i]->res_name);

0 commit comments

Comments
 (0)