diff options
Diffstat (limited to 'sound/isa/opti9xx/miro.c')
-rw-r--r-- | sound/isa/opti9xx/miro.c | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/sound/isa/opti9xx/miro.c b/sound/isa/opti9xx/miro.c index c24594c866f4..3d1afb612b35 100644 --- a/sound/isa/opti9xx/miro.c +++ b/sound/isa/opti9xx/miro.c | |||
@@ -37,6 +37,7 @@ | |||
37 | #include <sound/opl4.h> | 37 | #include <sound/opl4.h> |
38 | #include <sound/control.h> | 38 | #include <sound/control.h> |
39 | #include <sound/info.h> | 39 | #include <sound/info.h> |
40 | #define SNDRV_LEGACY_FIND_FREE_IOPORT | ||
40 | #define SNDRV_LEGACY_FIND_FREE_IRQ | 41 | #define SNDRV_LEGACY_FIND_FREE_IRQ |
41 | #define SNDRV_LEGACY_FIND_FREE_DMA | 42 | #define SNDRV_LEGACY_FIND_FREE_DMA |
42 | #include <sound/initval.h> | 43 | #include <sound/initval.h> |
@@ -770,20 +771,6 @@ static int __devinit snd_miro_mixer(struct snd_card *card, | |||
770 | return 0; | 771 | return 0; |
771 | } | 772 | } |
772 | 773 | ||
773 | static long snd_legacy_find_free_ioport(long *port_table, long size) | ||
774 | { | ||
775 | while (*port_table != -1) { | ||
776 | struct resource *res; | ||
777 | if ((res = request_region(*port_table, size, | ||
778 | "ALSA test")) != NULL) { | ||
779 | release_and_free_resource(res); | ||
780 | return *port_table; | ||
781 | } | ||
782 | port_table++; | ||
783 | } | ||
784 | return -1; | ||
785 | } | ||
786 | |||
787 | static int __devinit snd_miro_init(struct snd_miro *chip, | 774 | static int __devinit snd_miro_init(struct snd_miro *chip, |
788 | unsigned short hardware) | 775 | unsigned short hardware) |
789 | { | 776 | { |