summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2020-08-22 04:49:12 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2020-08-22 04:49:12 +0000
commit6510e49eddae43dca9e6707b1c1be0f98cf9a14c (patch)
tree82130fffbf4c134fdb63f25c9d462b4e91c9458b /sys
parent2852caa1af03babdb86e759e9d4abc00b3d70c2f (diff)
drm/amd/powerplay: fix compile error with ARCH=arc
From Evan Quan e6132d0ce6f2ce0227722e42d236e30db3763cea in linux 5.7.y/5.7.16 9822ba2ead1baa3de4860ad9472f652c4cc78c9c in mainline linux
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/pci/drm/amd/powerplay/smu_v11_0.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/pci/drm/amd/powerplay/smu_v11_0.c b/sys/dev/pci/drm/amd/powerplay/smu_v11_0.c
index 0eb396bb0d5..18698680186 100644
--- a/sys/dev/pci/drm/amd/powerplay/smu_v11_0.c
+++ b/sys/dev/pci/drm/amd/powerplay/smu_v11_0.c
@@ -159,7 +159,8 @@ int smu_v11_0_init_microcode(struct smu_context *smu)
chip_name = "navi12";
break;
default:
- BUG();
+ dev_err(adev->dev, "Unsupported ASIC type %d\n", adev->asic_type);
+ return -EINVAL;
}
snprintf(fw_name, sizeof(fw_name), "amdgpu/%s_smc.bin", chip_name);