* [PATCH] cs46xx OSS : switch to pci_get_device
@ 2006-09-15 14:08 Alan Cox
0 siblings, 0 replies; only message in thread
From: Alan Cox @ 2006-09-15 14:08 UTC (permalink / raw)
To: linux-kernel, akpm
Fairly trivial change in this case
Signed-off-by: Alan Cox <alan@redhat.com>
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);
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2006-09-15 13:45 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-09-15 14:08 [PATCH] cs46xx OSS : switch to pci_get_device Alan Cox
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome