diff options
author | Alan Cox <alan@lxorguk.ukuu.org.uk> | 2006-12-08 05:39:58 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.osdl.org> | 2006-12-08 11:29:03 -0500 |
commit | b1489009963b8c5132f2ffe23483e811d9ae5607 (patch) | |
tree | 66f8ada358e6e42dc7a65e3f7ed662d5bfc0d32a /drivers/ide/pci/sis5513.c | |
parent | 6b49a257850fb8ad91f4c76bb712e9213141a34a (diff) |
[PATCH] ide: more conversion to pci_get APIs
This completes IDE except for one use which requires a new core PCI function
and will be polished up at the end
Signed-off-by: Alan Cox <alan@redhat.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/ide/pci/sis5513.c')
-rw-r--r-- | drivers/ide/pci/sis5513.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/ide/pci/sis5513.c b/drivers/ide/pci/sis5513.c index 92edf76bd7ad..6b313139b5e4 100644 --- a/drivers/ide/pci/sis5513.c +++ b/drivers/ide/pci/sis5513.c | |||
@@ -800,9 +800,10 @@ static unsigned int __devinit init_chipset_sis5513 (struct pci_dev *dev, const c | |||
800 | 800 | ||
801 | if (trueid == 0x5517) { /* SiS 961/961B */ | 801 | if (trueid == 0x5517) { /* SiS 961/961B */ |
802 | 802 | ||
803 | lpc_bridge = pci_find_slot(0x00, 0x10); /* Bus 0, Dev 2, Fn 0 */ | 803 | lpc_bridge = pci_get_slot(dev->bus, 0x10); /* Bus 0, Dev 2, Fn 0 */ |
804 | pci_read_config_byte(lpc_bridge, PCI_REVISION_ID, &sbrev); | 804 | pci_read_config_byte(lpc_bridge, PCI_REVISION_ID, &sbrev); |
805 | pci_read_config_byte(dev, 0x49, &prefctl); | 805 | pci_read_config_byte(dev, 0x49, &prefctl); |
806 | pci_dev_put(lpc_bridge); | ||
806 | 807 | ||
807 | if (sbrev == 0x10 && (prefctl & 0x80)) { | 808 | if (sbrev == 0x10 && (prefctl & 0x80)) { |
808 | printk(KERN_INFO "SIS5513: SiS 961B MuTIOL IDE UDMA133 controller\n"); | 809 | printk(KERN_INFO "SIS5513: SiS 961B MuTIOL IDE UDMA133 controller\n"); |