mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-04 16:15:11 +00:00
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:
parent
c18f352442
commit
74f7f183d8
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue