git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
vserver 1.9.5.x5
[linux-2.6.git]
/
arch
/
ppc
/
platforms
/
k2.c
diff --git
a/arch/ppc/platforms/k2.c
b/arch/ppc/platforms/k2.c
index
8a60203
..
be5c051
100644
(file)
--- a/
arch/ppc/platforms/k2.c
+++ b/
arch/ppc/platforms/k2.c
@@
-116,7
+116,7
@@
void k2_pcibios_fixup(void)
/*
* Enable DMA support on hdc
*/
/*
* Enable DMA support on hdc
*/
- ide_dev = pci_
find
_device(PCI_VENDOR_ID_AL,
+ ide_dev = pci_
get
_device(PCI_VENDOR_ID_AL,
PCI_DEVICE_ID_AL_M5229, NULL);
if (ide_dev) {
PCI_DEVICE_ID_AL_M5229, NULL);
if (ide_dev) {
@@
-126,6
+126,7
@@
void k2_pcibios_fixup(void)
ide_dma_base = pci_resource_start(ide_dev, 4);
outb(0x00, ide_dma_base + 0x2);
outb(0x20, ide_dma_base + 0xa);
ide_dma_base = pci_resource_start(ide_dev, 4);
outb(0x00, ide_dma_base + 0x2);
outb(0x20, ide_dma_base + 0xa);
+ pci_dev_put(ide_dev);
}
#endif
}
}
#endif
}