You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
[POWERPC] Rename get_property to of_get_property: drivers
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:
committed by
Paul Mackerras
parent
c4f55b3945
commit
d05c7a80cf
@@ -144,7 +144,7 @@ int ams_sensor_attach(void)
|
||||
const u32 *prop;
|
||||
|
||||
/* Get orientation */
|
||||
prop = get_property(ams_info.of_node, "orientation", NULL);
|
||||
prop = of_get_property(ams_info.of_node, "orientation", NULL);
|
||||
if (!prop)
|
||||
return -ENODEV;
|
||||
ams_info.orient1 = *prop;
|
||||
|
||||
@@ -276,7 +276,7 @@ int __init ams_i2c_init(struct device_node *np)
|
||||
ams_info.bustype = BUS_I2C;
|
||||
|
||||
/* look for bus either using "reg" or by path */
|
||||
prop = get_property(ams_info.of_node, "reg", NULL);
|
||||
prop = of_get_property(ams_info.of_node, "reg", NULL);
|
||||
if (!prop) {
|
||||
result = -ENODEV;
|
||||
|
||||
|
||||
@@ -160,7 +160,7 @@ int __init ams_pmu_init(struct device_node *np)
|
||||
ams_info.bustype = BUS_HOST;
|
||||
|
||||
/* Get PMU command, should be 0x4e, but we can never know */
|
||||
prop = get_property(ams_info.of_node, "reg", NULL);
|
||||
prop = of_get_property(ams_info.of_node, "reg", NULL);
|
||||
if (!prop) {
|
||||
result = -ENODEV;
|
||||
goto exit;
|
||||
|
||||
Reference in New Issue
Block a user