diff options
author | Christian Gromm <christian.gromm@microchip.com> | 2019-06-13 17:23:47 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-06-15 20:54:28 +0200 |
commit | c90c1b427b08c17c9c1385b3d0aaf3004fe3d877 (patch) | |
tree | c2c1a44d2d0d9ee871017cd817af9093b171c17a /drivers/staging/most | |
parent | 9884b3f6f73d931e59646c56046d75a56f39a6de (diff) | |
download | linux-c90c1b427b08c17c9c1385b3d0aaf3004fe3d877.tar.gz linux-c90c1b427b08c17c9c1385b3d0aaf3004fe3d877.tar.bz2 linux-c90c1b427b08c17c9c1385b3d0aaf3004fe3d877.zip |
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>
Diffstat (limited to 'drivers/staging/most')
-rw-r--r-- | drivers/staging/most/net/net.c | 1 | ||||
-rw-r--r-- | drivers/staging/most/video/video.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/drivers/staging/most/net/net.c b/drivers/staging/most/net/net.c index 3fc80ad6730a..aababdf2be12 100644 --- a/drivers/staging/most/net/net.c +++ b/drivers/staging/most/net/net.c @@ -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); } diff --git a/drivers/staging/most/video/video.c b/drivers/staging/most/video/video.c index 72622eb08bf8..19ae7c4873b4 100644 --- a/drivers/staging/most/video/video.c +++ b/drivers/staging/most/video/video.c @@ -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)); } |