aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShahar Avidar <[email protected]>2024-04-05 10:40:00 +0300
committerGreg Kroah-Hartman <[email protected]>2024-04-09 17:52:14 +0200
commite68e319fc948aac7a67c88a2854d28c03f7891dc (patch)
treebb854f710b42ee9dd1e55ebdcfe53888aa1e9da5
parent78d17ecffcf41e3117a6c0408d186b99c555de76 (diff)
staging: pi433: Reorder pi433_exit cleanup calls.
debugfs_remove was called out of order. Ensure pi433 init & exit have reverse function calls order. Signed-off-by: Shahar Avidar <[email protected]> Reviewed-by: Dan Carpenter <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
-rw-r--r--drivers/staging/pi433/pi433_if.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/pi433/pi433_if.c b/drivers/staging/pi433/pi433_if.c
index 633daf50a401..befddf6bcea9 100644
--- a/drivers/staging/pi433/pi433_if.c
+++ b/drivers/staging/pi433/pi433_if.c
@@ -1425,9 +1425,9 @@ module_init(pi433_init);
static void __exit pi433_exit(void)
{
spi_unregister_driver(&pi433_spi_driver);
+ debugfs_remove(root_dir);
class_unregister(&pi433_class);
unregister_chrdev(MAJOR(pi433_devt), pi433_spi_driver.driver.name);
- debugfs_remove(root_dir);
}
module_exit(pi433_exit);