diff options
Diffstat (limited to 'sound')
-rw-r--r-- | sound/drivers/pcsp/pcsp.h | 1 | ||||
-rw-r--r-- | sound/oss/pas2_pcm.c | 2 | ||||
-rw-r--r-- | sound/sound_core.c | 7 |
3 files changed, 9 insertions, 1 deletions
diff --git a/sound/drivers/pcsp/pcsp.h b/sound/drivers/pcsp/pcsp.h index cdef2664218f..174dd2ff0f22 100644 --- a/sound/drivers/pcsp/pcsp.h +++ b/sound/drivers/pcsp/pcsp.h | |||
@@ -10,6 +10,7 @@ | |||
10 | #define __PCSP_H__ | 10 | #define __PCSP_H__ |
11 | 11 | ||
12 | #include <linux/hrtimer.h> | 12 | #include <linux/hrtimer.h> |
13 | #include <linux/timex.h> | ||
13 | #if defined(CONFIG_MIPS) || defined(CONFIG_X86) | 14 | #if defined(CONFIG_MIPS) || defined(CONFIG_X86) |
14 | /* Use the global PIT lock ! */ | 15 | /* Use the global PIT lock ! */ |
15 | #include <asm/i8253.h> | 16 | #include <asm/i8253.h> |
diff --git a/sound/oss/pas2_pcm.c b/sound/oss/pas2_pcm.c index 36c3ea62086b..8f7d175767a2 100644 --- a/sound/oss/pas2_pcm.c +++ b/sound/oss/pas2_pcm.c | |||
@@ -17,7 +17,7 @@ | |||
17 | 17 | ||
18 | #include <linux/init.h> | 18 | #include <linux/init.h> |
19 | #include <linux/spinlock.h> | 19 | #include <linux/spinlock.h> |
20 | #include <asm/timex.h> | 20 | #include <linux/timex.h> |
21 | #include "sound_config.h" | 21 | #include "sound_config.h" |
22 | 22 | ||
23 | #include "pas2.h" | 23 | #include "pas2.h" |
diff --git a/sound/sound_core.c b/sound/sound_core.c index 2b302bbffe73..12522e6913d9 100644 --- a/sound/sound_core.c +++ b/sound/sound_core.c | |||
@@ -27,6 +27,11 @@ MODULE_DESCRIPTION("Core sound module"); | |||
27 | MODULE_AUTHOR("Alan Cox"); | 27 | MODULE_AUTHOR("Alan Cox"); |
28 | MODULE_LICENSE("GPL"); | 28 | MODULE_LICENSE("GPL"); |
29 | 29 | ||
30 | static char *sound_nodename(struct device *dev) | ||
31 | { | ||
32 | return kasprintf(GFP_KERNEL, "snd/%s", dev_name(dev)); | ||
33 | } | ||
34 | |||
30 | static int __init init_soundcore(void) | 35 | static int __init init_soundcore(void) |
31 | { | 36 | { |
32 | int rc; | 37 | int rc; |
@@ -41,6 +46,8 @@ static int __init init_soundcore(void) | |||
41 | return PTR_ERR(sound_class); | 46 | return PTR_ERR(sound_class); |
42 | } | 47 | } |
43 | 48 | ||
49 | sound_class->nodename = sound_nodename; | ||
50 | |||
44 | return 0; | 51 | return 0; |
45 | } | 52 | } |
46 | 53 | ||