drm/tests: client-modeset: Remove call to drm_kunit_helper_free_device()
authorMaxime Ripard <mripard@kernel.org>
Fri, 28 Jul 2023 09:06:15 +0000 (11:06 +0200)
committerMaxime Ripard <mripard@kernel.org>
Mon, 31 Jul 2023 12:19:57 +0000 (14:19 +0200)
Calling drm_kunit_helper_free_device() to clean up the resources
allocated by drm_kunit_helper_alloc_device() is now optional and not
needed in most cases.

Remove it.

Reviewed-by: Javier Martinez Canillas <javierm@redhat.com>
Reviewed-by: MaĆ­ra Canal <mairacanal@riseup.net>
Link: https://lore.kernel.org/r/20230728-kms-kunit-actions-rework-v3-2-952565ccccfe@kernel.org
Signed-off-by: Maxime Ripard <mripard@kernel.org>
drivers/gpu/drm/tests/drm_client_modeset_test.c

index 416a279..7516f6c 100644 (file)
@@ -82,13 +82,6 @@ static int drm_client_modeset_test_init(struct kunit *test)
        return 0;
 }
 
-static void drm_client_modeset_test_exit(struct kunit *test)
-{
-       struct drm_client_modeset_test_priv *priv = test->priv;
-
-       drm_kunit_helper_free_device(test, priv->dev);
-}
-
 static void drm_test_pick_cmdline_res_1920_1080_60(struct kunit *test)
 {
        struct drm_client_modeset_test_priv *priv = test->priv;
@@ -188,7 +181,6 @@ static struct kunit_case drm_test_pick_cmdline_tests[] = {
 static struct kunit_suite drm_test_pick_cmdline_test_suite = {
        .name = "drm_test_pick_cmdline",
        .init = drm_client_modeset_test_init,
-       .exit = drm_client_modeset_test_exit,
        .test_cases = drm_test_pick_cmdline_tests
 };