diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2020-06-12 12:26:57 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2020-06-12 12:26:57 +0000 |
commit | 8f1f9ddee2a994bd53f8f1ce1565ffd64cdbd743 (patch) | |
tree | 3b9d7674f0b14cda27153efe30e6ae379e0ca651 /sys/dev/pci/drm/amd | |
parent | cf461fb6f8b2a38834fd664f28d6be27bc021669 (diff) |
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')
-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 } /** |