From: Kay Sievers Date: Fri, 3 Jul 2009 18:56:05 +0000 (+0200) Subject: sound: do not set DEVNAME for OSS devices X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=954a973cab37ad5df3f87f08964166abd956cc17;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git sound: do not set DEVNAME for OSS devices Signed-off-by: Kay Sievers Signed-off-by: Takashi Iwai --- diff --git a/sound/sound_core.c b/sound/sound_core.c index 12522e6913d..a41f8b127f4 100644 --- a/sound/sound_core.c +++ b/sound/sound_core.c @@ -10,6 +10,8 @@ #include #include #include +#include +#include #include #ifdef CONFIG_SOUND_OSS_CORE @@ -29,6 +31,8 @@ MODULE_LICENSE("GPL"); static char *sound_nodename(struct device *dev) { + if (MAJOR(dev->devt) == SOUND_MAJOR) + return NULL; return kasprintf(GFP_KERNEL, "snd/%s", dev_name(dev)); } @@ -104,7 +108,6 @@ module_exit(cleanup_soundcore); #include #include #include -#include #include #define SOUND_STEP 16