X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=arch%2Fppc%2Fplatforms%2Fprpmc750.c;h=fcab513e206dd7fc95336c8225ca185e291efb92;hb=97bf2856c6014879bd04983a3e9dfcdac1e7fe85;hp=a75553c9a5ba75de85c2909ce4384d727c3cb528;hpb=c7b5ebbddf7bcd3651947760f423e3783bbe6573;p=linux-2.6.git diff --git a/arch/ppc/platforms/prpmc750.c b/arch/ppc/platforms/prpmc750.c index a75553c9a..fcab513e2 100644 --- a/arch/ppc/platforms/prpmc750.c +++ b/arch/ppc/platforms/prpmc750.c @@ -1,6 +1,4 @@ /* - * arch/ppc/platforms/prpmc750_setup.c - * * Board setup routines for Motorola PrPMC750 * * Author: Matt Porter @@ -11,7 +9,6 @@ * or implied. */ -#include #include #include #include @@ -24,11 +21,11 @@ #include #include #include -#include #include #include #include #include +#include #include #include @@ -109,7 +106,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 +118,7 @@ static void __init prpmc750_pcibios_fixup(void) outb(0x0f, 0x3c4); /* Set proper DRAM config */ outb(0xdf, 0x3c5); + pci_dev_put(dev); } } @@ -301,8 +299,8 @@ static void __init prpmc750_init_IRQ(void) static __inline__ void prpmc750_set_bat(void) { mb(); - mtspr(DBAT1U, 0xf0001ffe); - mtspr(DBAT1L, 0xf000002a); + mtspr(SPRN_DBAT1U, 0xf0001ffe); + mtspr(SPRN_DBAT1L, 0xf000002a); mb(); }