X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=arch%2Fppc%2Fplatforms%2Fprpmc750.c;h=b89d144c801614dd1eeed87442c70417bf82831d;hb=6a77f38946aaee1cd85eeec6cf4229b204c15071;hp=a75553c9a5ba75de85c2909ce4384d727c3cb528;hpb=87fc8d1bb10cd459024a742c6a10961fefcef18f;p=linux-2.6.git diff --git a/arch/ppc/platforms/prpmc750.c b/arch/ppc/platforms/prpmc750.c index a75553c9a..b89d144c8 100644 --- a/arch/ppc/platforms/prpmc750.c +++ b/arch/ppc/platforms/prpmc750.c @@ -109,7 +109,7 @@ static void __init prpmc750_pcibios_fixup(void) * resource subsystem doesn't fixup the * PCI mem resources on the CL5446. */ - if ((dev = pci_find_device(PCI_VENDOR_ID_CIRRUS, + if ((dev = pci_get_device(PCI_VENDOR_ID_CIRRUS, PCI_DEVICE_ID_CIRRUS_5446, 0))) { dev->resource[0].start += PRPMC750_PCI_PHY_MEM_OFFSET; dev->resource[0].end += PRPMC750_PCI_PHY_MEM_OFFSET; @@ -121,6 +121,7 @@ static void __init prpmc750_pcibios_fixup(void) outb(0x0f, 0x3c4); /* Set proper DRAM config */ outb(0xdf, 0x3c5); + pci_dev_put(dev); } }