]> git.baikalelectronics.ru Git - kernel.git/commit
drm/nouveau: Make clock gate support conditional
authorThierry Reding <treding@nvidia.com>
Wed, 7 Feb 2018 17:40:27 +0000 (18:40 +0100)
committerBen Skeggs <bskeggs@redhat.com>
Fri, 16 Feb 2018 04:07:58 +0000 (14:07 +1000)
commit9c46a3fb10f24759bdd3966d508c3f39e8dd44b9
treeaa8c0f1ed751c520a9b856356fd44c646bbef658
parent1cd513d2ed8292d96b6ca6a24efced7651a17d82
drm/nouveau: Make clock gate support conditional

The recently introduced clock gate support breaks on Tegra chips because
no thermal support is enabled for those devices. Conditionalize the code
on the existence of thermal support to fix this.

Fixes: 8c3806b77aee ("drm/nouveau: Add support for basic clockgating on Kepler1")
Cc: Martin Peres <martin.peres@free.fr>
Cc: Lyude Paul <lyude@redhat.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Reviewed-by: Lyude Paul <lyude@redhat.com>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nvkm/subdev/therm/base.c