aboutsummaryrefslogtreecommitdiffstats
path: root/sound/core/timer.c
diff options
context:
space:
mode:
Diffstat (limited to 'sound/core/timer.c')
-rw-r--r--sound/core/timer.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sound/core/timer.c b/sound/core/timer.c
index 9d8184a2c2d0..0af337efc64e 100644
--- a/sound/core/timer.c
+++ b/sound/core/timer.c
@@ -146,7 +146,7 @@ static struct snd_timer *snd_timer_find(struct snd_timer_id *tid)
146 return NULL; 146 return NULL;
147} 147}
148 148
149#ifdef CONFIG_KMOD 149#ifdef CONFIG_MODULES
150 150
151static void snd_timer_request(struct snd_timer_id *tid) 151static void snd_timer_request(struct snd_timer_id *tid)
152{ 152{
@@ -259,8 +259,8 @@ int snd_timer_open(struct snd_timer_instance **ti,
259 /* open a master instance */ 259 /* open a master instance */
260 mutex_lock(&register_mutex); 260 mutex_lock(&register_mutex);
261 timer = snd_timer_find(tid); 261 timer = snd_timer_find(tid);
262#ifdef CONFIG_KMOD 262#ifdef CONFIG_MODULES
263 if (timer == NULL) { 263 if (!timer) {
264 mutex_unlock(&register_mutex); 264 mutex_unlock(&register_mutex);
265 snd_timer_request(tid); 265 snd_timer_request(tid);
266 mutex_lock(&register_mutex); 266 mutex_lock(&register_mutex);