[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
@ -606,7 +606,7 @@ static void smu_expose_childs(struct work_struct *unused)
|
||||
struct device_node *np;
|
||||
|
||||
for (np = NULL; (np = of_get_next_child(smu->of_node, np)) != NULL;)
|
||||
if (device_is_compatible(np, "smu-sensors"))
|
||||
if (of_device_is_compatible(np, "smu-sensors"))
|
||||
of_platform_device_create(np, "smu-sensors",
|
||||
&smu->of_dev->dev);
|
||||
}
|
||||
|
Reference in New Issue
Block a user