staging: most: deregister net and video config subsystems with configFS
authorChristian Gromm <christian.gromm@microchip.com>
Thu, 13 Jun 2019 15:23:47 +0000 (17:23 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 15 Jun 2019 18:54:28 +0000 (20:54 +0200)
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>
drivers/staging/most/net/net.c
drivers/staging/most/video/video.c

index 3fc80ad6730a2f72048717b457b6fc2350bad549..aababdf2be12c8d803171b917bc5e76a9d8fb5a2 100644 (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);
 }
 
index 72622eb08bf8a5e719c74ddcf01cdfa1e1929023..19ae7c4873b4435d2f3e70447779d776f70f32ce 100644 (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));
 }