diff options
-rw-r--r-- | drivers/gpu/drm/nouveau/nouveau_platform.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/drivers/gpu/drm/nouveau/nouveau_platform.c b/drivers/gpu/drm/nouveau/nouveau_platform.c index 775277f1edb0..dcfbbfaf1739 100644 --- a/drivers/gpu/drm/nouveau/nouveau_platform.c +++ b/drivers/gpu/drm/nouveau/nouveau_platform.c | |||
@@ -92,6 +92,8 @@ static int nouveau_platform_power_down(struct nouveau_platform_gpu *gpu) | |||
92 | return 0; | 92 | return 0; |
93 | } | 93 | } |
94 | 94 | ||
95 | #if IS_ENABLED(CONFIG_IOMMU_API) | ||
96 | |||
95 | static void nouveau_platform_probe_iommu(struct device *dev, | 97 | static void nouveau_platform_probe_iommu(struct device *dev, |
96 | struct nouveau_platform_gpu *gpu) | 98 | struct nouveau_platform_gpu *gpu) |
97 | { | 99 | { |
@@ -158,6 +160,20 @@ static void nouveau_platform_remove_iommu(struct device *dev, | |||
158 | } | 160 | } |
159 | } | 161 | } |
160 | 162 | ||
163 | #else | ||
164 | |||
165 | static void nouveau_platform_probe_iommu(struct device *dev, | ||
166 | struct nouveau_platform_gpu *gpu) | ||
167 | { | ||
168 | } | ||
169 | |||
170 | static void nouveau_platform_remove_iommu(struct device *dev, | ||
171 | struct nouveau_platform_gpu *gpu) | ||
172 | { | ||
173 | } | ||
174 | |||
175 | #endif | ||
176 | |||
161 | static int nouveau_platform_probe(struct platform_device *pdev) | 177 | static int nouveau_platform_probe(struct platform_device *pdev) |
162 | { | 178 | { |
163 | struct nouveau_platform_gpu *gpu; | 179 | struct nouveau_platform_gpu *gpu; |