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: Christian Gromm <christian.gromm@microchip.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
9884b3f6f7
commit
c90c1b427b
@ -524,6 +524,7 @@ static int __init most_net_init(void)
|
||||
|
||||
static void __exit most_net_exit(void)
|
||||
{
|
||||
most_deregister_configfs_subsys(&comp);
|
||||
most_deregister_component(&comp);
|
||||
}
|
||||
|
||||
|
@ -576,6 +576,7 @@ static void __exit comp_exit(void)
|
||||
}
|
||||
spin_unlock_irq(&list_lock);
|
||||
|
||||
most_deregister_configfs_subsys(&comp);
|
||||
most_deregister_component(&comp);
|
||||
BUG_ON(!list_empty(&video_devices));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user