[PATCH] trident: fix pci_dev reference counting and buglet
commit1cfee2b3c21d71a8c20884dbb77ed343558db87f
authorAlan Cox <alan@redhat.com>
Sun, 1 Oct 2006 06:28:03 +0000 (30 23:28 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Sun, 1 Oct 2006 07:39:24 +0000 (1 00:39 -0700)
treee7445d49fc9a9798b5371784b5b78d4d057d815d
parentb2e9c7d07fcc8966d6aa50a77afa66c9919bd5a8
[PATCH] trident: fix pci_dev reference counting and buglet

Switch trident to use pci_get/put_dev properly.  Also fix a bug where the
driver erroneously passed pdev not NULL to a second search.  This happened
to always work except with pci=reverse because of chip ordering.

Signed-off-by: Alan Cox <alan@redhat.com>
Signed-off-by: Muli Ben-Yehuda <muli@il.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
sound/oss/trident.c