[2.6 patch] sound/oss/cs4232.c: fix section mismatch

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



probe_cs4232() is called from the non-__init cs4232_pnp_probe().

bss is used in probe_cs4232().

Signed-off-by: Adrian Bunk <[email protected]>

---

 sound/oss/cs4232.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

--- linux-2.6.17-mm2-full/sound/oss/cs4232.c.old	2006-06-25 21:40:11.000000000 +0200
+++ linux-2.6.17-mm2-full/sound/oss/cs4232.c	2006-06-25 21:41:59.000000000 +0200
@@ -72,7 +72,7 @@
 #define CS_OUT2(a, b)		{CS_OUT(a);CS_OUT(b);}
 #define CS_OUT3(a, b, c)	{CS_OUT(a);CS_OUT(b);CS_OUT(c);}
 
-static int __initdata bss       = 0;
+static int bss       = 0;
 static int mpu_base, mpu_irq;
 static int synth_base, synth_irq;
 static int mpu_detected;
@@ -127,7 +127,7 @@
         outb(((unsigned char) (ENABLE_PINS | regd)), baseio + INDEX_DATA );
 }
 
-static int __init probe_cs4232(struct address_info *hw_config, int isapnp_configured)
+static int probe_cs4232(struct address_info *hw_config, int isapnp_configured)
 {
 	int i, n;
 	int base = hw_config->io_base, irq = hw_config->irq;

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux