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>
This commit is contained in:
Christian Gromm 2019-06-12 11:30:29 +02:00 committed by Greg Kroah-Hartman
parent 8810493fc5
commit bb3982b42e
2 changed files with 22 additions and 2 deletions

View File

@ -507,9 +507,19 @@ static struct core_component comp = {
static int __init most_net_init(void)
{
int err;
spin_lock_init(&list_lock);
mutex_init(&probe_disc_mt);
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 most_net_exit(void)

View File

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