soc/tegra: pmc: Check device node status property

In early_initcall, check if PMC device is available for use
and avoid accessing PMC resources if the device node status
property is set to disabled.

Signed-off-by: Manish Bhardwaj <mbhardwaj@nvidia.com>
Signed-off-by: Petlozu Pravareshwar <petlozup@nvidia.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
This commit is contained in:
Petlozu Pravareshwar 2022-09-06 13:51:17 +00:00 committed by Thierry Reding
parent c18f352442
commit 74f7f183d8
1 changed files with 1 additions and 1 deletions

View File

@ -4044,7 +4044,7 @@ static int __init tegra_pmc_early_init(void)
return -ENXIO;
}
if (np) {
if (of_device_is_available(np)) {
pmc->soc = match->data;
if (pmc->soc->maybe_tz_only)