X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=sound%2Fcore%2Finfo.c;h=de9879b3b38676c5b00e83f47b67d2e42df17f36;hb=6a77f38946aaee1cd85eeec6cf4229b204c15071;hp=db1e2575fdf3ec164a979e6787b87078ae8cda37;hpb=87fc8d1bb10cd459024a742c6a10961fefcef18f;p=linux-2.6.git diff --git a/sound/core/info.c b/sound/core/info.c index db1e2575f..de9879b3b 100644 --- a/sound/core/info.c +++ b/sound/core/info.c @@ -20,7 +20,6 @@ */ #include -#include #include #include #include @@ -126,8 +125,8 @@ static inline void snd_info_entry_prepare(struct proc_dir_entry *de) de->owner = THIS_MODULE; } -void snd_remove_proc_entry(struct proc_dir_entry *parent, - struct proc_dir_entry *de) +static void snd_remove_proc_entry(struct proc_dir_entry *parent, + struct proc_dir_entry *de) { if (de) remove_proc_entry(de->name, parent); @@ -522,8 +521,8 @@ static struct file_operations snd_info_entry_operations = * * Returns the pointer of new instance or NULL on failure. */ -struct proc_dir_entry *snd_create_proc_entry(const char *name, mode_t mode, - struct proc_dir_entry *parent) +static struct proc_dir_entry *snd_create_proc_entry(const char *name, mode_t mode, + struct proc_dir_entry *parent) { struct proc_dir_entry *p; p = create_proc_entry(name, mode, parent); @@ -892,8 +891,7 @@ void snd_info_free_entry(snd_info_entry_t * entry) { if (entry == NULL) return; - if (entry->name) - kfree((char *)entry->name); + kfree(entry->name); if (entry->private_free) entry->private_free(entry); kfree(entry); @@ -959,18 +957,10 @@ static snd_info_entry_t *snd_info_version_entry = NULL; static void snd_info_version_read(snd_info_entry_t *entry, snd_info_buffer_t * buffer) { - static char *kernel_version = UTS_RELEASE; - snd_iprintf(buffer, - "Advanced Linux Sound Architecture Driver Version " CONFIG_SND_VERSION CONFIG_SND_DATE ".\n" - "Compiled on " __DATE__ " for kernel %s" -#ifdef CONFIG_SMP - " (SMP)" -#endif -#ifdef MODVERSIONS - " with versioned symbols" -#endif - ".\n", kernel_version); + "Advanced Linux Sound Architecture Driver Version " + CONFIG_SND_VERSION CONFIG_SND_DATE ".\n" + ); } static int __init snd_info_version_init(void)