-/**
- * snd_info_unregister - de-register the info entry
- * @entry: the info entry
- *
- * De-registers the info entry and releases the instance.
- *
- * Returns zero if successful, or a negative error code on failure.
- */
-int snd_info_unregister(snd_info_entry_t * entry)
-{
- struct proc_dir_entry *root;
-
- snd_assert(entry != NULL && entry->p != NULL, return -ENXIO);
- root = entry->parent == NULL ? snd_proc_root : entry->parent->p;
- snd_assert(root, return -ENXIO);
- down(&info_mutex);
- snd_remove_proc_entry(root, entry->p);
- up(&info_mutex);
- snd_info_free_entry(entry);
- return 0;
-}