summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorThierry Reding <treding@nvidia.com>2021-12-16 14:06:54 +0100
committerThierry Reding <treding@nvidia.com>2021-12-16 14:06:54 +0100
commit7a56783850772feb2cbf1dabdce617f5941a57c0 (patch)
tree8175d8da1915a34c1d0a525feb2b8f10605d9e8b /include
parent136057256686de39cc3a07c2e39ef6bc43003ff6 (diff)
parent9131c6331726514f0d0364c41f8733cc5eec11ab (diff)
Merge branch 'tegra-for-5.17-soc-opp' of git://git.kernel.org/pub/scm/linux/kernel/git/tegra/linux into drm/tegra/for-next
Diffstat (limited to 'include')
-rw-r--r--include/soc/tegra/common.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/include/soc/tegra/common.h b/include/soc/tegra/common.h
index af41ad80ec21..8ec1ac07fc85 100644
--- a/include/soc/tegra/common.h
+++ b/include/soc/tegra/common.h
@@ -39,4 +39,19 @@ devm_tegra_core_dev_init_opp_table(struct device *dev,
}
#endif
+static inline int
+devm_tegra_core_dev_init_opp_table_common(struct device *dev)
+{
+ struct tegra_core_opp_params opp_params = {};
+ int err;
+
+ opp_params.init_state = true;
+
+ err = devm_tegra_core_dev_init_opp_table(dev, &opp_params);
+ if (err != -ENODEV)
+ return err;
+
+ return 0;
+}
+
#endif /* __SOC_TEGRA_COMMON_H__ */