soc/tegra: pmc: Check device node status property
authorPetlozu Pravareshwar <petlozup@nvidia.com>
Tue, 6 Sep 2022 13:51:17 +0000 (13:51 +0000)
committerThierry Reding <treding@nvidia.com>
Thu, 15 Sep 2022 12:10:49 +0000 (14:10 +0200)
commit74f7f183d81c26a53c2b1708364069d391b1b4d6
treea4be576a6f358cd653cd490741e1331974f35391
parentc18f3524422dd28d2049f9ad3822a70e918a340d
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>
drivers/soc/tegra/pmc.c