]> git.proxmox.com Git - mirror_ubuntu-kernels.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)
commit92256269893e96e5f9e8ac6dd882a0bef63fcea7
treeaa8c0f1ed751c520a9b856356fd44c646bbef658
parentb515483e12b81da8cb62f1ff2461d6c29cf5115f
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: b138eca661cc ("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