projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c18f352
)
soc/tegra: pmc: Check device node status property
author
Petlozu Pravareshwar
<petlozup@nvidia.com>
Tue, 6 Sep 2022 13:51:17 +0000
(13:51 +0000)
committer
Thierry Reding
<treding@nvidia.com>
Thu, 15 Sep 2022 12:10:49 +0000
(14:10 +0200)
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
patch
|
blob
|
history
diff --git
a/drivers/soc/tegra/pmc.c
b/drivers/soc/tegra/pmc.c
index 961b2de16307891879ec4abc5ca6ba410f1e5422..678e8bc8a45d1045ca1421c829418ab0c2f20d85 100644
(file)
--- a/
drivers/soc/tegra/pmc.c
+++ b/
drivers/soc/tegra/pmc.c
@@
-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)