From: Takashi Iwai Date: Thu, 17 Nov 2005 16:22:43 +0000 (+0100) Subject: [ALSA] Remove snd_legacy_auto_probe() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=27441127b086230cc4c57d6cd9a615272fb47bcd;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git [ALSA] Remove snd_legacy_auto_probe() Modules: ALSA Core Remove unsed snd_legacy_auto_probe() function. Signed-off-by: Takashi Iwai --- diff --git a/include/sound/initval.h b/include/sound/initval.h index 2bf1508825a..d29e3d31d14 100644 --- a/include/sound/initval.h +++ b/include/sound/initval.h @@ -50,20 +50,6 @@ #define SNDRV_DEFAULT_DMA_SIZE { [0 ... (SNDRV_CARDS-1)] = SNDRV_AUTO_DMA_SIZE } #define SNDRV_DEFAULT_PTR SNDRV_DEFAULT_STR -#ifdef SNDRV_LEGACY_AUTO_PROBE -static int snd_legacy_auto_probe(unsigned long *ports, int (*probe)(unsigned long port)) -{ - int result = 0; /* number of detected cards */ - - while ((signed long)*ports != -1) { - if (probe(*ports) >= 0) - result++; - ports++; - } - return result; -} -#endif - #ifdef SNDRV_LEGACY_FIND_FREE_IRQ #include