Commit 3b6edcb3 authored by YueHaibing's avatar YueHaibing Committed by Kalle Valo

ray_cs: use remove_proc_subtree to simplify procfs code

Use remove_proc_subtree to remove the whole subtree
Signed-off-by: default avatarYueHaibing <yuehaibing@huawei.com>
Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
parent 444efbde
...@@ -2820,11 +2820,7 @@ static void __exit exit_ray_cs(void) ...@@ -2820,11 +2820,7 @@ static void __exit exit_ray_cs(void)
pr_debug("ray_cs: cleanup_module\n"); pr_debug("ray_cs: cleanup_module\n");
#ifdef CONFIG_PROC_FS #ifdef CONFIG_PROC_FS
remove_proc_entry("driver/ray_cs/ray_cs", NULL); remove_proc_subtree("driver/ray_cs", NULL);
remove_proc_entry("driver/ray_cs/essid", NULL);
remove_proc_entry("driver/ray_cs/net_type", NULL);
remove_proc_entry("driver/ray_cs/translate", NULL);
remove_proc_entry("driver/ray_cs", NULL);
#endif #endif
pcmcia_unregister_driver(&ray_driver); pcmcia_unregister_driver(&ray_driver);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment