[PATCH] cs46xx OSS : switch to pci_get_device

From: Alan Cox
Date: Fri Sep 15 2006 - 09:46:04 EST


Fairly trivial change in this case

Signed-off-by: Alan Cox <alan@xxxxxxxxxx>

diff -u --new-file --recursive --exclude-from /usr/src/exclude linux.vanilla-2.6.18-rc6-mm1/sound/oss/cs46xx.c linux-2.6.18-rc6-mm1/sound/oss/cs46xx.c
--- linux.vanilla-2.6.18-rc6-mm1/sound/oss/cs46xx.c 2006-09-11 17:00:27.000000000 +0100
+++ linux-2.6.18-rc6-mm1/sound/oss/cs46xx.c 2006-09-14 17:30:26.000000000 +0100
@@ -2982,7 +2982,7 @@

card->active+=change;

- acpi_dev = pci_find_device(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_82371AB_3, NULL);
+ acpi_dev = pci_get_device(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_82371AB_3, NULL);
if (acpi_dev == NULL)
return; /* Not a thinkpad thats for sure */

@@ -3008,6 +3008,7 @@
change,card->active));
outw(control&~0x2000, port+0x10);
}
+ pci_dev_put(acpi_dev);
}



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