All of lore.kernel.org
 help / color / mirror / Atom feed
* [patch, 2.5] move snd_legacy_find_free_ioport to opti92x-ad1848.c
@ 2002-12-30 19:41 Marcus Alanen
  2002-12-30 20:28 ` [patch, 2.5] opti92x-ad1848 one check_region fixup Marcus Alanen
  0 siblings, 1 reply; 7+ messages in thread
From: Marcus Alanen @ 2002-12-30 19:41 UTC (permalink / raw)
  To: trivial; +Cc: linux-kernel

Moves the snd_legacy_find_free_ioport definition to opti92x-ad1848.c, 
since it is the only user.

#
# create_patch: move_snd_legacy_find_free_ioport-2002-12-30-A.patch
# Date: Mon Dec 30 21:13:59 EET 2002
#
diff -Naurd --exclude-from=/home/maalanen/linux/base/diff_exclude linus-2.5.53/include/sound/initval.h initval-2.5.53/include/sound/initval.h
--- linus-2.5.53/include/sound/initval.h	Fri Dec 27 00:04:28 2002
+++ initval-2.5.53/include/sound/initval.h	Mon Dec 30 19:11:42 2002
@@ -97,18 +97,6 @@
 }
 #endif
 
-#ifdef SNDRV_LEGACY_FIND_FREE_IOPORT
-static long snd_legacy_find_free_ioport(long *port_table, long size)
-{
-	while (*port_table != -1) {
-		if (!check_region(*port_table, size))
-			return *port_table;
-		port_table++;
-	}
-	return -1;
-}
-#endif
-
 #ifdef SNDRV_LEGACY_FIND_FREE_IRQ
 #include <linux/interrupt.h>
 
diff -Naurd --exclude-from=/home/maalanen/linux/base/diff_exclude linus-2.5.53/sound/isa/opti9xx/opti92x-ad1848.c initval-2.5.53/sound/isa/opti9xx/opti92x-ad1848.c
--- linus-2.5.53/sound/isa/opti9xx/opti92x-ad1848.c	Thu Oct 31 20:24:38 2002
+++ initval-2.5.53/sound/isa/opti9xx/opti92x-ad1848.c	Mon Dec 30 19:13:17 2002
@@ -47,7 +47,6 @@
 #endif	/* CS4231 */
 #include <sound/mpu401.h>
 #include <sound/opl3.h>
-#define SNDRV_LEGACY_FIND_FREE_IOPORT
 #define SNDRV_LEGACY_FIND_FREE_IRQ
 #define SNDRV_LEGACY_FIND_FREE_DMA
 #define SNDRV_GET_ID
@@ -323,6 +322,16 @@
 	"82C930",	"82C931",	"82C933"
 };
 
+
+static long snd_legacy_find_free_ioport(long *port_table, long size)
+{
+	while (*port_table != -1) {
+		if (!check_region(*port_table, size))
+			return *port_table;
+		port_table++;
+	}
+	return -1;
+}
 
 static int __init snd_opti9xx_init(opti9xx_t *chip, unsigned short hardware)
 {


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2003-01-01 17:21 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-12-30 19:41 [patch, 2.5] move snd_legacy_find_free_ioport to opti92x-ad1848.c Marcus Alanen
2002-12-30 20:28 ` [patch, 2.5] opti92x-ad1848 one check_region fixup Marcus Alanen
2002-12-30 20:58   ` [patch, 2.5] opti92x-ad1848 second " Marcus Alanen
2002-12-31 23:17   ` [patch, 2.5] opti92x-ad1848 one " Rusty Russell
2003-01-01 13:50     ` Marcus Alanen
2003-01-01 16:39   ` Jaroslav Kysela
2003-01-01 17:30     ` Marcus Alanen

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.