diff options
author | Amber Lin <Amber.Lin@amd.com> | 2018-12-14 09:35:17 -0500 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2019-01-14 15:04:29 -0500 |
commit | 308176d6f625bc782a34ec316beaefcfa7ad75f3 (patch) | |
tree | c2138c46bbec856efa3c3a3f5f3c49ed59a7b556 /drivers/gpu/drm/amd/amdkfd | |
parent | 8e07e2676a42e7d3e5fe8eebac6262ec975664a1 (diff) |
drm/amdgpu: Remove kgd2kfd function pointers
kgd2kfd function pointers and global kgd2kfd pointer are no longer in use.
Signed-off-by: Amber Lin <Amber.Lin@amd.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Acked-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdkfd')
-rw-r--r-- | drivers/gpu/drm/amd/amdkfd/kfd_module.c | 29 |
1 files changed, 2 insertions, 27 deletions
diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_module.c b/drivers/gpu/drm/amd/amdkfd/kfd_module.c index 030b39d62973..932007eb9168 100644 --- a/drivers/gpu/drm/amd/amdkfd/kfd_module.c +++ b/drivers/gpu/drm/amd/amdkfd/kfd_module.c | |||
@@ -25,22 +25,6 @@ | |||
25 | #include "kfd_priv.h" | 25 | #include "kfd_priv.h" |
26 | #include "amdgpu_amdkfd.h" | 26 | #include "amdgpu_amdkfd.h" |
27 | 27 | ||
28 | static const struct kgd2kfd_calls kgd2kfd = { | ||
29 | .exit = kgd2kfd_exit, | ||
30 | .probe = kgd2kfd_probe, | ||
31 | .device_init = kgd2kfd_device_init, | ||
32 | .device_exit = kgd2kfd_device_exit, | ||
33 | .interrupt = kgd2kfd_interrupt, | ||
34 | .suspend = kgd2kfd_suspend, | ||
35 | .resume = kgd2kfd_resume, | ||
36 | .quiesce_mm = kgd2kfd_quiesce_mm, | ||
37 | .resume_mm = kgd2kfd_resume_mm, | ||
38 | .schedule_evict_and_restore_process = | ||
39 | kgd2kfd_schedule_evict_and_restore_process, | ||
40 | .pre_reset = kgd2kfd_pre_reset, | ||
41 | .post_reset = kgd2kfd_post_reset, | ||
42 | }; | ||
43 | |||
44 | static int kfd_init(void) | 28 | static int kfd_init(void) |
45 | { | 29 | { |
46 | int err; | 30 | int err; |
@@ -92,18 +76,9 @@ static void kfd_exit(void) | |||
92 | kfd_chardev_exit(); | 76 | kfd_chardev_exit(); |
93 | } | 77 | } |
94 | 78 | ||
95 | int kgd2kfd_init(unsigned int interface_version, | 79 | int kgd2kfd_init() |
96 | const struct kgd2kfd_calls **g2f) | ||
97 | { | 80 | { |
98 | int err; | 81 | return kfd_init(); |
99 | |||
100 | err = kfd_init(); | ||
101 | if (err) | ||
102 | return err; | ||
103 | |||
104 | *g2f = &kgd2kfd; | ||
105 | |||
106 | return 0; | ||
107 | } | 82 | } |
108 | 83 | ||
109 | void kgd2kfd_exit(void) | 84 | void kgd2kfd_exit(void) |