summaryrefslogtreecommitdiffstats
path: root/drivers/staging/most/sound
diff options
context:
space:
mode:
authorChristian Gromm <christian.gromm@microchip.com>2019-04-03 15:19:48 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-04-16 13:25:17 +0200
commit919c03ae11b98681aedc2ac7d00110c387b92f16 (patch)
tree47bfe1ea3b7d0ec0e2a38fa6259c546e47bc09bf /drivers/staging/most/sound
parent9640baca34f57d1a6c78b11cee9eaa2f61a51e97 (diff)
downloadlinux-919c03ae11b98681aedc2ac7d00110c387b92f16.tar.bz2
staging: most: enable configfs support
This patch enables the configfs functionality of the driver by registering the configfs subsystems and compiling the configfs part of the sources. Signed-off-by: Christian Gromm <christian.gromm@microchip.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/most/sound')
-rw-r--r--drivers/staging/most/sound/sound.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/drivers/staging/most/sound/sound.c b/drivers/staging/most/sound/sound.c
index 826174273b5c..6b5438c2495b 100644
--- a/drivers/staging/most/sound/sound.c
+++ b/drivers/staging/most/sound/sound.c
@@ -790,16 +790,25 @@ static struct core_component comp = {
static int __init audio_init(void)
{
+ int ret;
+
pr_info("init()\n");
INIT_LIST_HEAD(&adpt_list);
- return most_register_component(&comp);
+ ret = most_register_component(&comp);
+ if (ret)
+ pr_err("Failed to register %s\n", comp.name);
+ ret = most_register_configfs_subsys(&comp);
+ if (ret)
+ pr_err("Failed to register %s configfs subsys\n", comp.name);
+ return ret;
}
static void __exit audio_exit(void)
{
pr_info("exit()\n");
+ most_deregister_configfs_subsys(&comp);
most_deregister_component(&comp);
}