]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
staging: greybus: audio: remove unused gb_audio_manager_get_module()
authorHardik Phalet <hardik.phalet@pm.me>
Tue, 24 Feb 2026 18:54:59 +0000 (18:54 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 25 Feb 2026 15:04:51 +0000 (07:04 -0800)
gb_audio_manager_get_module() has no in-tree callers so remove the
unused function to avoid carrying dead code.

Signed-off-by: Hardik Phalet <hardik.phalet@pm.me>
Link: https://patch.msgid.link/20260224185421.824210-2-hardik.phalet@pm.me
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/greybus/audio_manager.c
drivers/staging/greybus/audio_manager.h

index 27ca5f796c5f378e32df40f3e7498434f9d5330d..118ada9b909b61be33860db5a0ad4f7987302645 100644 (file)
@@ -105,18 +105,6 @@ void gb_audio_manager_remove_all(void)
 }
 EXPORT_SYMBOL_GPL(gb_audio_manager_remove_all);
 
-struct gb_audio_manager_module *gb_audio_manager_get_module(int id)
-{
-       struct gb_audio_manager_module *module;
-
-       down_read(&modules_rwsem);
-       module = gb_audio_manager_get_locked(id);
-       kobject_get(&module->kobj);
-       up_read(&modules_rwsem);
-       return module;
-}
-EXPORT_SYMBOL_GPL(gb_audio_manager_get_module);
-
 void gb_audio_manager_put_module(struct gb_audio_manager_module *module)
 {
        kobject_put(&module->kobj);
index be605485a8ceadd0223e6666349c3f5c6a0b78f9..c3ef62ee22c88d237357d7a5f0ea6509fa6a9b20 100644 (file)
@@ -54,13 +54,6 @@ int gb_audio_manager_remove(int id);
  */
 void gb_audio_manager_remove_all(void);
 
-/*
- * Retrieves a gb_audio_manager_module_descriptor for the specified id.
- * Returns the gb_audio_manager_module_descriptor structure,
- * or NULL if there is no module with the specified ID.
- */
-struct gb_audio_manager_module *gb_audio_manager_get_module(int id);
-
 /*
  * Decreases the refcount of the module, obtained by the get function.
  * Modules are removed via gb_audio_manager_remove