2003-01-14 03:33:36

by Zwane Mwaikambo

[permalink] [raw]
Subject: [PATCH][2.5] sound/oss/ad1848.c compile fix

Fails to compile, tested on an opl3sa2.

Although this driver doesn't actually use the new pnp code to do detection.

Index: linux-2.5.57/sound/oss/ad1848.c
===================================================================
RCS file: /build/cvsroot/linux-2.5.57/sound/oss/ad1848.c,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 ad1848.c
--- linux-2.5.57/sound/oss/ad1848.c 13 Jan 2003 22:55:14 -0000 1.1.1.1
+++ linux-2.5.57/sound/oss/ad1848.c 14 Jan 2003 03:39:35 -0000
@@ -3007,7 +3007,7 @@
if((ad1848_dev = activate_dev(ad1848_isapnp_list[slot].name, "ad1848", ad1848_dev)))
{
get_device(&ad1848_dev->dev);
- hw_config->io_base = ad1848_dev->resource[ad1848_isapnp_list[slot].mss_io].start;
+ hw_config->io_base = ad1848_dev->io_resource[ad1848_isapnp_list[slot].mss_io].start;
hw_config->irq = ad1848_dev->irq_resource[ad1848_isapnp_list[slot].irq].start;
hw_config->dma = ad1848_dev->dma_resource[ad1848_isapnp_list[slot].dma].start;
if(ad1848_isapnp_list[slot].dma2 != -1)
--
function.linuxpower.ca