Commit 40cddf2cbd02aa830254afcd5a1a21b4e882a189
Committed by
Linus Torvalds
1 parent
970a61363b
Exists in
master
and in
7 other branches
[PATCH] sis5513: Switch to pci refcounting
Mirrors the drivers/ata version, hold a reference to the host bridge while we are doing setup. Signed-off-by: Alan Cox <alan@redhat.com> Cc: Greg KH <greg@kroah.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Showing 1 changed file with 2 additions and 1 deletions Side-by-side Diff
drivers/ide/pci/sis5513.c
... | ... | @@ -739,7 +739,7 @@ |
739 | 739 | |
740 | 740 | for (i = 0; i < ARRAY_SIZE(SiSHostChipInfo) && !chipset_family; i++) { |
741 | 741 | |
742 | - host = pci_find_device(PCI_VENDOR_ID_SI, SiSHostChipInfo[i].host_id, NULL); | |
742 | + host = pci_get_device(PCI_VENDOR_ID_SI, SiSHostChipInfo[i].host_id, NULL); | |
743 | 743 | |
744 | 744 | if (!host) |
745 | 745 | continue; |
... | ... | @@ -753,6 +753,7 @@ |
753 | 753 | if (hostrev >= 0x30) |
754 | 754 | chipset_family = ATA_100a; |
755 | 755 | } |
756 | + pci_dev_put(host); | |
756 | 757 | |
757 | 758 | printk(KERN_INFO "SIS5513: %s %s controller\n", |
758 | 759 | SiSHostChipInfo[i].name, chipset_capability[chipset_family]); |