drm/amdgpu: rework IP block registration (v2)
[linux-block.git] / drivers / gpu / drm / amd / amdgpu / iceland_ih.c
index 3b8906ce3511274f302b7f23bbca5dd6d53fb683..ac21bb7bc0f335713fb86e093999870d92bc6eb3 100644 (file)
@@ -392,7 +392,7 @@ static int iceland_ih_set_powergating_state(void *handle,
        return 0;
 }
 
-const struct amd_ip_funcs iceland_ih_ip_funcs = {
+static const struct amd_ip_funcs iceland_ih_ip_funcs = {
        .name = "iceland_ih",
        .early_init = iceland_ih_early_init,
        .late_init = NULL,
@@ -421,3 +421,11 @@ static void iceland_ih_set_interrupt_funcs(struct amdgpu_device *adev)
                adev->irq.ih_funcs = &iceland_ih_funcs;
 }
 
+const struct amdgpu_ip_block_version iceland_ih_ip_block =
+{
+       .type = AMD_IP_BLOCK_TYPE_IH,
+       .major = 2,
+       .minor = 4,
+       .rev = 0,
+       .funcs = &iceland_ih_ip_funcs,
+};