cs46xx compile failure in 2.4.21

cs46xx compile failure in 2.4.21

Post by Carlos Valdivia Yagü » Sun, 15 Jun 2003 00:40:12



Hi,

cs46xx.c doesn't compile in 2.4.21 with gcc 3.3:

cs46xx.c:950: error: long, short, signed or unsigned used invalidly for `off'
cs46xx.c:951: error: long, short, signed or unsigned used invalidly for `val'
cs46xx.c: In function `cs_ac97_init':

This patch fixes compilation issue and works fine for my soundcard:

--- linux-2.4.21/drivers/sound/cs46xx.c.orig    2003-06-13 23:29:53.000000000 +0200

 struct InitStruct
 {
-    u32 long off;
-    u32 long val;
+    u32 off;
+    u32 val;
 } InitArray[] = { {0x00000040, 0x3fc0000f},
                   {0x0000004c, 0x04800000},

Best regards.

--

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/