diff options
| author | 2020-06-12 12:26:56 +0000 | |
|---|---|---|
| committer | 2020-06-12 12:26:56 +0000 | |
| commit | 36b3c3850db95853d2b28908fd8a6d042b280898 (patch) | |
| tree | 2cb1ecaae9c2fa2b483ba1738b41d99fd8d67636 /sys/dev/pci/drm/amd/amdgpu/amdgpu_irq.c | |
| parent | Remove superflous space I added with my last commit. (diff) | |
| download | wireguard-openbsd-36b3c3850db95853d2b28908fd8a6d042b280898.tar.xz wireguard-openbsd-36b3c3850db95853d2b28908fd8a6d042b280898.zip | |
Make amdgpu_irq_add_domain silent; this functionality is only needed to
support digital audio output which we don't support (yet) in OpenBSD.
Diffstat (limited to 'sys/dev/pci/drm/amd/amdgpu/amdgpu_irq.c')
| -rw-r--r-- | sys/dev/pci/drm/amd/amdgpu/amdgpu_irq.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/dev/pci/drm/amd/amdgpu/amdgpu_irq.c b/sys/dev/pci/drm/amd/amdgpu/amdgpu_irq.c index 9bc381b12d4..bcca89920a1 100644 --- a/sys/dev/pci/drm/amd/amdgpu/amdgpu_irq.c +++ b/sys/dev/pci/drm/amd/amdgpu/amdgpu_irq.c @@ -667,18 +667,16 @@ static const struct irq_domain_ops amdgpu_hw_irqdomain_ops = { */ int amdgpu_irq_add_domain(struct amdgpu_device *adev) { - STUB(); - return 0; -#if 0 +#ifdef __linux__ adev->irq.domain = irq_domain_add_linear(NULL, AMDGPU_MAX_IRQ_SRC_ID, &amdgpu_hw_irqdomain_ops, adev); if (!adev->irq.domain) { DRM_ERROR("GPU irq add domain failed\n"); return -ENODEV; } +#endif return 0; -#endif } /** |
