]> git.baikalelectronics.ru Git - kernel.git/commit
drm/nouveau/platform: fix compile error if !CONFIG_IOMMU
authorAlexandre Courbot <acourbot@nvidia.com>
Wed, 8 Apr 2015 09:08:13 +0000 (18:08 +0900)
committerBen Skeggs <bskeggs@redhat.com>
Mon, 27 Jul 2015 08:56:07 +0000 (18:56 +1000)
commit291496427c33d1842a150ca23fcb7e03ce9a43a4
tree40ba121962843e8bbf746218a1f13e411008ce3c
parentcefcc82c203f185dc8feac6dc4cc77c75371aba8
drm/nouveau/platform: fix compile error if !CONFIG_IOMMU

The lack of IOMMU API support can make nouveau_platform_probe_iommu()
fail to compile because struct iommu_ops is then empty. Fix this by
skipping IOMMU probe in that case - lack of IOMMU on platform devices
is sub-optimal, but is not an error.

Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nouveau_platform.c