diff options
author | Christian Gromm <christian.gromm@microchip.com> | 2019-06-12 12:30:29 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-06-13 12:52:39 +0300 |
commit | bb3982b42e797b1dd7197c4142ccd5231d0109ac (patch) | |
tree | 89c1aac23820cb129f8e19b9ac5bb926b3b0c711 /drivers/staging/most/video | |
parent | 8810493fc54e7562e7b8350813f8fdf865e8ec37 (diff) | |
download | linux-bb3982b42e797b1dd7197c4142ccd5231d0109ac.tar.xz |
staging: most: register net and video config subsystems with configFS
This patch makes the core components net and video register their config
subsystems with configFS. It is needed to have the configuration interface
of the modules exposed to user space.
Signed-off-by: Christian Gromm <christian.gromm@microchip.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/most/video')
-rw-r--r-- | drivers/staging/most/video/video.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/drivers/staging/most/video/video.c b/drivers/staging/most/video/video.c index adca250062e1..72622eb08bf8 100644 --- a/drivers/staging/most/video/video.c +++ b/drivers/staging/most/video/video.c @@ -540,8 +540,18 @@ static struct core_component comp = { static int __init comp_init(void) { + int err; + spin_lock_init(&list_lock); - return most_register_component(&comp); + err = most_register_component(&comp); + if (err) + return err; + err = most_register_configfs_subsys(&comp); + if (err) { + most_deregister_component(&comp); + return err; + } + return 0; } static void __exit comp_exit(void) |