Skip to contentSkip to conversation

2.6.x misc updates (OSS drvr module_param stuff)

PATCH New Jeff Garzik 1 participant 1 message Nov 15, 2004 Sound

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 2.6.x misc updates (OSS drvr module_param stuff)

BK users:

bk pull bk://gkernel.bkbits.net/misc-2.6

This will update the following files:

 sound/oss/i810_audio.c |   12 ++++++------
 sound/oss/soundcard.c  |    4 ++--
 sound/oss/uart401.c    |    8 ++++----
 3 files changed, 12 insertions(+), 12 deletions(-)

through these ChangeSets:

<[email protected]> (04/11/14 1.2162)
[sound/oss] use module_param() in soundcard.c and uart401.c

<[email protected]> (04/11/14 1.2161)
[sound/oss i810_audio] use module_param()

Also, set MODULE_AUTHOR and correct module name in a macro.

sound/oss/i810_audio.c +6 -6
diff -Nru a/sound/oss/i810_audio.c b/sound/oss/i810_audio.c
@@ -3460,15 +3460,15 @@
 }	
 #endif /* CONFIG_PM */
 
-MODULE_AUTHOR("");
+MODULE_AUTHOR("The Linux kernel team");
 MODULE_DESCRIPTION("Intel 810 audio support");
 MODULE_LICENSE("GPL");
-MODULE_PARM(ftsodell, "i");
-MODULE_PARM(clocking, "i");
-MODULE_PARM(strict_clocking, "i");
-MODULE_PARM(spdif_locked, "i");
+module_param(ftsodell, int, 0444);
+module_param(clocking, uint, 0444);
+module_param(strict_clocking, int, 0444);
+module_param(spdif_locked, int, 0444);
 
-#define I810_MODULE_NAME "intel810_audio"
+#define I810_MODULE_NAME "i810_audio"
 
 static struct pci_driver i810_pci_driver = {
 	.name		= I810_MODULE_NAME,
sound/oss/soundcard.c +2 -2
diff -Nru a/sound/oss/soundcard.c b/sound/oss/soundcard.c
@@ -535,8 +535,8 @@
 static int dmabuf;
 static int dmabug;
 
-MODULE_PARM(dmabuf, "i");
-MODULE_PARM(dmabug, "i");
+module_param(dmabuf, int, 0444);
+module_param(dmabug, int, 0444);
 
 static int __init oss_init(void)
 {
sound/oss/uart401.c +4 -4
diff -Nru a/sound/oss/uart401.c b/sound/oss/uart401.c
@@ -430,11 +430,11 @@
 
 static struct address_info cfg_mpu;
 
-static int __initdata io = -1;
-static int __initdata irq = -1;
+static int io = -1;
+static int irq = -1;
 
-MODULE_PARM(io, "i");
-MODULE_PARM(irq, "i");
+module_param(io, int, 0444);
+module_param(irq, int, 0444);
 
 
 static int __init init_uart401(void)