drm/xe: Remove xe_dummy_exit()
authorLucas De Marchi <lucas.demarchi@intel.com>
Fri, 31 Jan 2025 22:39:08 +0000 (14:39 -0800)
committerLucas De Marchi <lucas.demarchi@intel.com>
Mon, 3 Feb 2025 15:51:45 +0000 (07:51 -0800)
Since commit 014125c64d09 ("drm/xe: Support 'nomodeset' kernel
command-line option") the dummy exit is not needed anymore since the
caller check for a NULL pointer. Drop it.

Reviewed-by: Raag Jadav <raag.jadav@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20250131223908.4147195-1-lucas.demarchi@intel.com
Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
drivers/gpu/drm/xe/xe_module.c

index 07b27114be9af42732b6a5fb7eb1777883c4ff18..7185a2cdf6e38a7ee8f6f025a674b444cf398dcf 100644 (file)
@@ -77,10 +77,6 @@ struct init_funcs {
        void (*exit)(void);
 };
 
-static void xe_dummy_exit(void)
-{
-}
-
 static const struct init_funcs init_funcs[] = {
        {
                .init = xe_check_nomodeset,
@@ -103,7 +99,6 @@ static const struct init_funcs init_funcs[] = {
        },
        {
                .init = xe_pm_module_init,
-               .exit = xe_dummy_exit,
        },
 };