Fix bt87x.c build problem
Subsystems (2)
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 19 lines · Linux Kernel
tree
2fe5cb66de97b707e23d531578dc2a656855415e
parent3d3c2ae1101c1f2dff7e2f9d514769779dbd2737
author Greg KH <[email protected]> Wed, 06 Jul 2005 22:51:03 -0700 committer Linus Torvalds <[email protected]> Wed, 06 Jul 2005 23:34:23 -0700[PATCH] Fix
bt87x.cbuild problemMissing forward declaration
Signed-off-by Greg Kroah-Hartman <[email protected]>Signed-off-by Linus Torvalds <[email protected]>sound/pci/bt87x.c | 2 ++ 1 files changed, 2 insertions(+)
sound/pci/bt87x.c static struct {
Quoted 9 lines
sound/pci/bt87x.c +2
-1@@ -798,6 +798,8 @@ static struct { {0x270f, 0xfc00}, /* Chaintech Digitop DST-1000 DVB-S */ }; +static struct pci_driver driver; +/* return the rate of the card, or a negative value if it's blacklisted */ static int __devinit snd_bt87x_detect_card (struct pci_dev *pci) { -
Still not enough to make it build here..
sound/pci/bt87x.c:809: error: incompatible type for argument 1 of 'pci_match_device'
Signed-off-by Dave Jones <[email protected]>
sound/pci/bt87x.c renamed from sound/pci/bt87x.c~ +1 -1
@@ -806,7 +806,7 @@ static int __devinit snd_bt87x_detect_caint 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;