Commit c90c1b42 authored by Christian Gromm's avatar Christian Gromm Committed by Greg Kroah-Hartman

staging: most: deregister net and video config subsystems with configFS

This patch makes the modules net and video deregister its config subsystems
when the modules are removed from the kernel.
Signed-off-by: default avatarChristian Gromm <christian.gromm@microchip.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 9884b3f6
...@@ -524,6 +524,7 @@ static int __init most_net_init(void) ...@@ -524,6 +524,7 @@ static int __init most_net_init(void)
static void __exit most_net_exit(void) static void __exit most_net_exit(void)
{ {
most_deregister_configfs_subsys(&comp);
most_deregister_component(&comp); most_deregister_component(&comp);
} }
......
...@@ -576,6 +576,7 @@ static void __exit comp_exit(void) ...@@ -576,6 +576,7 @@ static void __exit comp_exit(void)
} }
spin_unlock_irq(&list_lock); spin_unlock_irq(&list_lock);
most_deregister_configfs_subsys(&comp);
most_deregister_component(&comp); most_deregister_component(&comp);
BUG_ON(!list_empty(&video_devices)); BUG_ON(!list_empty(&video_devices));
} }
......
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