Merge branch 'fix/soundcore' into for-linus

* fix/soundcore:
sound: do not set DEVNAME for OSS devices

+4 -1
+4 -1
sound/sound_core.c
··· 10 10 #include <linux/module.h> 11 11 #include <linux/device.h> 12 12 #include <linux/err.h> 13 + #include <linux/kdev_t.h> 14 + #include <linux/major.h> 13 15 #include <sound/core.h> 14 16 15 17 #ifdef CONFIG_SOUND_OSS_CORE ··· 31 29 32 30 static char *sound_nodename(struct device *dev) 33 31 { 32 + if (MAJOR(dev->devt) == SOUND_MAJOR) 33 + return NULL; 34 34 return kasprintf(GFP_KERNEL, "snd/%s", dev_name(dev)); 35 35 } 36 36 ··· 108 104 #include <linux/types.h> 109 105 #include <linux/kernel.h> 110 106 #include <linux/sound.h> 111 - #include <linux/major.h> 112 107 #include <linux/kmod.h> 113 108 114 109 #define SOUND_STEP 16