[POWERPC] Rename device_is_compatible to of_device_is_compatible
for consistency with other Open Firmware interfaces (and Sparc). This is just a straight replacement. This leaves the compatibility define in place. 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
d9333afd6a
commit
55b61fec22
@ -208,14 +208,14 @@ int __init ams_init(void)
|
||||
|
||||
#ifdef CONFIG_SENSORS_AMS_I2C
|
||||
np = of_find_node_by_name(NULL, "accelerometer");
|
||||
if (np && device_is_compatible(np, "AAPL,accelerometer_1"))
|
||||
if (np && of_device_is_compatible(np, "AAPL,accelerometer_1"))
|
||||
/* Found I2C motion sensor */
|
||||
return ams_i2c_init(np);
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_SENSORS_AMS_PMU
|
||||
np = of_find_node_by_name(NULL, "sms");
|
||||
if (np && device_is_compatible(np, "sms"))
|
||||
if (np && of_device_is_compatible(np, "sms"))
|
||||
/* Found PMU motion sensor */
|
||||
return ams_pmu_init(np);
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user