[POWERPC] Rename get_property to of_get_property: arch/powerpc
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au> Acked-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by: Paul Mackerras <paulus@samba.org>
This commit is contained in:

کامیت شده توسط
Paul Mackerras

والد
ceef87782a
کامیت
e2eb63927b
@@ -58,11 +58,11 @@ static int __init add_bridge(struct device_node *dev)
|
||||
{
|
||||
int len;
|
||||
struct pci_controller *hose;
|
||||
int *bus_range;
|
||||
const int *bus_range;
|
||||
|
||||
printk("Adding PCI host bridge %s\n", dev->full_name);
|
||||
|
||||
bus_range = (int *) get_property(dev, "bus-range", &len);
|
||||
bus_range = of_get_property(dev, "bus-range", &len);
|
||||
if (bus_range == NULL || len < 2 * sizeof(int))
|
||||
printk(KERN_WARNING "Can't get bus-range for %s, assume"
|
||||
" bus 0\n", dev->full_name);
|
||||
@@ -106,7 +106,7 @@ static void __init linkstation_init_IRQ(void)
|
||||
{
|
||||
struct mpic *mpic;
|
||||
struct device_node *dnp;
|
||||
void *prop;
|
||||
const u32 *prop;
|
||||
int size;
|
||||
phys_addr_t paddr;
|
||||
|
||||
@@ -114,7 +114,7 @@ static void __init linkstation_init_IRQ(void)
|
||||
if (dnp == NULL)
|
||||
return;
|
||||
|
||||
prop = (struct device_node *)get_property(dnp, "reg", &size);
|
||||
prop = of_get_property(dnp, "reg", &size);
|
||||
paddr = (phys_addr_t)of_translate_address(dnp, prop);
|
||||
|
||||
mpic = mpic_alloc(dnp, paddr, MPIC_PRIMARY | MPIC_WANTS_RESET, 4, 32, " EPIC ");
|
||||
|
مرجع در شماره جدید
Block a user