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:
Christian Gromm 2019-06-13 17:23:47 +02:00 committed by Greg Kroah-Hartman
parent 9884b3f6f7
commit c90c1b427b
2 changed files with 2 additions and 0 deletions

View File

@ -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);
}

View File

@ -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));
}