From 88558110e683392481609b22d94b4a3c8c65571b Mon Sep 17 00:00:00 2001 From: Trent Piepho Date: Sat, 23 Jun 2007 14:26:05 -0700 Subject: compat: Add compat.h code for pci_match_device() From: Trent Piepho The first argument changed in 2.6.13, but it can be make backward compatible with a macro. Signed-off-by: Trent Piepho --- linux/sound/pci/bt87x.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'linux') diff --git a/linux/sound/pci/bt87x.c b/linux/sound/pci/bt87x.c index 5939a52cb..c0cddc589 100644 --- a/linux/sound/pci/bt87x.c +++ b/linux/sound/pci/bt87x.c @@ -857,11 +857,7 @@ static int __devinit snd_bt87x_detect_card(struct pci_dev *pci) int i; const struct pci_device_id *supported; -#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,13) supported = pci_match_device(&driver, pci); -#else - supported = pci_match_device(driver.id_table, pci); -#endif if (supported && supported->driver_data > 0) return supported->driver_data; -- cgit v1.2.3