Skip to content

Commit 885291a

Browse files
Grillo-0mairacanal
authored andcommitted
drm/tests: Fix kunit_release_action ctx argument
The kunit_action_platform_driver_unregister is added with &fake_platform_driver as ctx, but the kunit_release_action is called pdev as ctx. Fix that by replacing it with &fake_platform_driver. Fixes: 4f2b0b5 ("drm/tests: helpers: Switch to kunit actions") Signed-off-by: Arthur Grillo <[email protected]> Reviewed-by: Maíra Canal <[email protected]> Acked-by: Maxime Ripard <[email protected]> Signed-off-by: Maíra Canal <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent 645d694 commit 885291a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/tests/drm_kunit_helpers.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ void drm_kunit_helper_free_device(struct kunit *test, struct device *dev)
118118

119119
kunit_release_action(test,
120120
kunit_action_platform_driver_unregister,
121-
pdev);
121+
&fake_platform_driver);
122122
}
123123
EXPORT_SYMBOL_GPL(drm_kunit_helper_free_device);
124124

0 commit comments

Comments
 (0)