diff mbox series

[v4,8/9] drm/selftests: Add module_exit for test-drm-helper

Message ID 20181012163600.20331-9-alexandru-cosmin.gheorghe@arm.com (mailing list archive)
State New, archived
Headers show
Series Add method to describe tile/bit_level_packed formats | expand

Commit Message

Alexandru-Cosmin Gheorghe Oct. 12, 2018, 4:35 p.m. UTC
test-drm-helper.ko can't be rmmod-ed because it doesn't have a
module_exit,  that could be very inconvenient especially in the
development stage where we usually want to re-run the tests without
any rebooting.

Signed-off-by: Alexandru Gheorghe <alexandru-cosmin.gheorghe@arm.com>
---
 drivers/gpu/drm/selftests/test-drm-helper.c | 5 +++++
 1 file changed, 5 insertions(+)
diff mbox series

Patch

diff --git a/drivers/gpu/drm/selftests/test-drm-helper.c b/drivers/gpu/drm/selftests/test-drm-helper.c
index a015712b43e8..a6a1818fdafd 100644
--- a/drivers/gpu/drm/selftests/test-drm-helper.c
+++ b/drivers/gpu/drm/selftests/test-drm-helper.c
@@ -241,7 +241,12 @@  static int __init test_drm_helper_init(void)
 	return err > 0 ? 0 : err;
 }
 
+static void __exit test_drm_helper_exit(void)
+{
+}
+
 module_init(test_drm_helper_init);
+module_exit(test_drm_helper_exit);
 
 MODULE_AUTHOR("Intel Corporation");
 MODULE_LICENSE("GPL");