Commit 74f7f183 authored by Petlozu Pravareshwar's avatar Petlozu Pravareshwar Committed by Thierry Reding
Browse files

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: default avatarManish Bhardwaj <mbhardwaj@nvidia.com>
Signed-off-by: default avatarPetlozu Pravareshwar <petlozup@nvidia.com>
Signed-off-by: default avatarThierry Reding <treding@nvidia.com>
parent c18f3524
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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)