[POWERPC] Rename get_property to of_get_property: partial drivers
This does drivers/machintosh and the hvc code. Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au> Signed-off-by: Paul Mackerras <paulus@samba.org>
This commit is contained in:

committed by
Paul Mackerras

parent
a48141db68
commit
01b2726dd1
@@ -134,7 +134,7 @@ static int wf_max6690_attach(struct i2c_adapter *adapter)
|
||||
if (!device_is_compatible(dev, "max6690"))
|
||||
continue;
|
||||
addr = pmac_i2c_get_dev_addr(dev);
|
||||
loc = get_property(dev, "hwsensor-location", NULL);
|
||||
loc = of_get_property(dev, "hwsensor-location", NULL);
|
||||
if (loc == NULL || addr == 0)
|
||||
continue;
|
||||
printk("found max6690, loc=%s addr=0x%02x\n", loc, addr);
|
||||
|
Reference in New Issue
Block a user