diff options
Diffstat (limited to 'sound/drivers/opl4/opl4_proc.c')
-rw-r--r-- | sound/drivers/opl4/opl4_proc.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/sound/drivers/opl4/opl4_proc.c b/sound/drivers/opl4/opl4_proc.c index e552ec34166f..1679300b7583 100644 --- a/sound/drivers/opl4/opl4_proc.c +++ b/sound/drivers/opl4/opl4_proc.c | |||
@@ -105,13 +105,13 @@ static long long snd_opl4_mem_proc_llseek(struct snd_info_entry *entry, void *fi | |||
105 | struct file *file, long long offset, int orig) | 105 | struct file *file, long long offset, int orig) |
106 | { | 106 | { |
107 | switch (orig) { | 107 | switch (orig) { |
108 | case 0: /* SEEK_SET */ | 108 | case SEEK_SET: |
109 | file->f_pos = offset; | 109 | file->f_pos = offset; |
110 | break; | 110 | break; |
111 | case 1: /* SEEK_CUR */ | 111 | case SEEK_CUR: |
112 | file->f_pos += offset; | 112 | file->f_pos += offset; |
113 | break; | 113 | break; |
114 | case 2: /* SEEK_END, offset is negative */ | 114 | case SEEK_END: /* offset is negative */ |
115 | file->f_pos = entry->size + offset; | 115 | file->f_pos = entry->size + offset; |
116 | break; | 116 | break; |
117 | default: | 117 | default: |
@@ -159,8 +159,7 @@ int snd_opl4_create_proc(struct snd_opl4 *opl4) | |||
159 | 159 | ||
160 | void snd_opl4_free_proc(struct snd_opl4 *opl4) | 160 | void snd_opl4_free_proc(struct snd_opl4 *opl4) |
161 | { | 161 | { |
162 | if (opl4->proc_entry) | 162 | snd_info_free_entry(opl4->proc_entry); |
163 | snd_info_unregister(opl4->proc_entry); | ||
164 | } | 163 | } |
165 | 164 | ||
166 | #endif /* CONFIG_PROC_FS */ | 165 | #endif /* CONFIG_PROC_FS */ |