mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
[POWERPC] Rename get_property to of_get_property: drivers
Signed-off-by: Stephen Rothwell <[email protected]> Acked-by: Benjamin Herrenschmidt <[email protected]> Signed-off-by: Paul Mackerras <[email protected]>
This commit is contained in:
parent
c4f55b3945
commit
d05c7a80cf
50 changed files with 122 additions and 120 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue