soc/tegra: pmc: Check device node status property
PATCH 1/1 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 <[email protected]>
Signed-off-by Petlozu Pravareshwar <[email protected]>
--- drivers/soc/tegra/pmc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/soc/tegra/pmc.c +1 -1
@@ -4295,7 +4295,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)
Signature · 1 line
2.17.1
Thierry Reding
AppliedQuoted 9 lines · Petlozu Pravareshwar
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 <[email protected]>Signed-off-by Petlozu Pravareshwar <[email protected]>--- drivers/soc/tegra/pmc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Applied, thanks.
Thierry