summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/xe/xe_module.c
diff options
context:
space:
mode:
authorGustavo Sousa <gustavo.sousa@intel.com>2023-05-11 22:48:21 +0300
committerRodrigo Vivi <rodrigo.vivi@intel.com>2023-12-20 02:33:51 +0300
commita029aecaa42018a9ebc90fbf6e2920acfc4c6b3f (patch)
tree37979801245552abcc18204a889197e6691a0bc4 /drivers/gpu/drm/xe/xe_module.c
parentd0e96f3d5255f62bc9721392b198acc4d302de32 (diff)
downloadlinux-a029aecaa42018a9ebc90fbf6e2920acfc4c6b3f.tar.xz
drm/xe: Get rid of MAKE_INIT_EXIT_FUNCS
There is not much of a benefit from using that macro as of now and it hurts grepability or other ways of cross-referencing. Cc: Jani Nikula <jani.nikula@intel.com> Reviewed-by: Matt Atwood <matthew.s.atwood@intel.com> Signed-off-by: Gustavo Sousa <gustavo.sousa@intel.com> Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Diffstat (limited to 'drivers/gpu/drm/xe/xe_module.c')
-rw-r--r--drivers/gpu/drm/xe/xe_module.c14
1 files changed, 9 insertions, 5 deletions
diff --git a/drivers/gpu/drm/xe/xe_module.c b/drivers/gpu/drm/xe/xe_module.c
index e8ee7a9b0878..e2a61aaf50b6 100644
--- a/drivers/gpu/drm/xe/xe_module.c
+++ b/drivers/gpu/drm/xe/xe_module.c
@@ -35,12 +35,16 @@ struct init_funcs {
int (*init)(void);
void (*exit)(void);
};
-#define MAKE_INIT_EXIT_FUNCS(name) \
- { .init = xe_##name##_module_init, \
- .exit = xe_##name##_module_exit, }
+
static const struct init_funcs init_funcs[] = {
- MAKE_INIT_EXIT_FUNCS(hw_fence),
- MAKE_INIT_EXIT_FUNCS(sched_job),
+ {
+ .init = xe_hw_fence_module_init,
+ .exit = xe_hw_fence_module_exit,
+ },
+ {
+ .init = xe_sched_job_module_init,
+ .exit = xe_sched_job_module_exit,
+ },
};
static int __init xe_init(void)