Commit a029aeca authored by Gustavo Sousa's avatar Gustavo Sousa Committed by Rodrigo Vivi

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: default avatarMatt Atwood <matthew.s.atwood@intel.com>
Signed-off-by: default avatarGustavo Sousa <gustavo.sousa@intel.com>
Signed-off-by: default avatarRodrigo Vivi <rodrigo.vivi@intel.com>
parent d0e96f3d
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment