aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Gromm <christian.gromm@microchip.com>2019-06-13 17:23:47 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-06-15 20:54:28 +0200
commitc90c1b427b08c17c9c1385b3d0aaf3004fe3d877 (patch)
treec2c1a44d2d0d9ee871017cd817af9093b171c17a
parentstaging: android: fix style problem (diff)
downloadlinux-dev-c90c1b427b08c17c9c1385b3d0aaf3004fe3d877.tar.xz
linux-dev-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>
-rw-r--r--drivers/staging/most/net/net.c1
-rw-r--r--drivers/staging/most/video/video.c1
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));
}