Re: compilation error sound/pci/bt87x.c:807 [Re: Linux 2.6.13-rc2]

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

 



Tomasz Torcz wrote:

>   CC [M]  sound/pci/bt87x.o
>sound/pci/bt87x.c: In function `snd_bt87x_detect_card':
>sound/pci/bt87x.c:807: error: `driver' undeclared (first use in this function)
>sound/pci/bt87x.c:807: error: (Each undeclared identifier is reported only once
>sound/pci/bt87x.c:807: error: for each function it appears in.)
>make[2]: *** [sound/pci/bt87x.o] Error 1
>make[1]: *** [sound/pci] Error 2
>make: *** [sound] Error 2
>  
>
Hi,

The attached patch should fix it.

Regards,
Alexandre

Signed-off-by: Alexandre Buisse <[email protected]>
--- linux-2.6.13-rc2/sound/pci/bt87x.c.old	2005-07-06 16:29:08.000000000 +0200
+++ linux-2.6.13-rc2/sound/pci/bt87x.c	2005-07-06 16:25:05.000000000 +0200
@@ -47,6 +47,8 @@
 static int digital_rate[SNDRV_CARDS] = { [0 ... (SNDRV_CARDS-1)] = 0 }; /* digital input rate */
 static int load_all;	/* allow to load the non-whitelisted cards */
 
+static struct pci_driver driver;
+
 module_param_array(index, int, NULL, 0444);
 MODULE_PARM_DESC(index, "Index value for Bt87x soundcard");
 module_param_array(id, charp, NULL, 0444);
@@ -804,7 +806,7 @@
 	int i;
 	const struct pci_device_id *supported;
 
-	supported = pci_match_device(driver, pci);
+	supported = pci_match_device(&driver, pci);
 	if (supported)
 		return supported->driver_data;
 

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