[<prev] [next>] [day] [month] [year] [list]
Message-Id: <1158329323.29932.35.camel@localhost.localdomain>
Date: Fri, 15 Sep 2006 15:08:43 +0100
From: Alan Cox <alan@...rguk.ukuu.org.uk>
To: linux-kernel@...r.kernel.org, akpm@...l.org
Subject: [PATCH] cs46xx OSS : switch to pci_get_device
Fairly trivial change in this case
Signed-off-by: Alan Cox <alan@...hat.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);
}
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists