mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-22 09:11:26 +03:00
drm/tegra: Fix genpd support for Linux v6.13
In Linux v6.13, commit d6caca30a548 ("OPP: Drop redundant
*_opp_attach|detach_genpd()") removed devm_pm_opp_attach_genpd(). This
has been replaced by devm_pm_domain_attach_list(). Use conftest to
detect the presence of devm_pm_domain_attach_list() and update the Tegra
DRM driver accordingly.
Bug 4991705
Change-Id: I5a3bd258d3fce5b09fd4ba84adad166e4cf47cfb
Signed-off-by: Jon Hunter <jonathanh@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3261693
(cherry picked from commit 4c08d4e516a89751afc8410553ccebff983e29d0)
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3499749
Reviewed-by: Brad Griffis <bgriffis@nvidia.com>
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com>
Tested-by: Brad Griffis <bgriffis@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
c07615fe6a
commit
0980dbb86e
@@ -6872,6 +6872,19 @@ compile_test() {
|
||||
compile_check_conftest "$CODE" "NV_PWM_CHIP_STRUCT_HAS_STRUCT_DEVICE" "" "types"
|
||||
;;
|
||||
|
||||
devm_pm_domain_attach_list)
|
||||
#
|
||||
# Determine whether devm_pm_domain_attach_list is present.
|
||||
#
|
||||
CODE="
|
||||
#include <linux/pm_domain.h>
|
||||
void conftest_devm_pm_domain_attach_list(void) {
|
||||
devm_pm_domain_attach_list();
|
||||
}"
|
||||
|
||||
compile_check_conftest "$CODE" "NV_DEVM_PM_DOMAIN_ATTACH_LIST_PRESENT" "" "functions"
|
||||
;;
|
||||
|
||||
devm_tegra_core_dev_init_opp_table_common)
|
||||
#
|
||||
# Determine whether devm_tegra_core_dev_init_opp_table_common is
|
||||
|
||||
Reference in New Issue
Block a user