summaryrefslogtreecommitdiff
path: root/drivers/firmware
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2017-05-19 02:08:57 (GMT)
committerSimon Glass <sjg@chromium.org>2017-06-01 13:03:06 (GMT)
commit911f3aef357ca02ac0d06fdce6a7a3081594f272 (patch)
tree02a77f43e3a9437c56d9d0c4b81dcedace5afc72 /drivers/firmware
parent3af86a4e23bba49b573aabeb83bb41c199686ef6 (diff)
downloadu-boot-fsl-qoriq-911f3aef357ca02ac0d06fdce6a7a3081594f272.tar.xz
dm: core: Rename of_device_is_compatible()
The of_ prefix conflicts with the livetree version of this function. Rename it to avoid problems when we add livetree support. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers/firmware')
-rw-r--r--drivers/firmware/psci.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/firmware/psci.c b/drivers/firmware/psci.c
index 7652cc2..451fbde 100644
--- a/drivers/firmware/psci.c
+++ b/drivers/firmware/psci.c
@@ -40,8 +40,8 @@ static unsigned long __invoke_psci_fn_smc(unsigned long function_id,
static int psci_bind(struct udevice *dev)
{
/* No SYSTEM_RESET support for PSCI 0.1 */
- if (of_device_is_compatible(dev, "arm,psci-0.2") ||
- of_device_is_compatible(dev, "arm,psci-1.0")) {
+ if (device_is_compatible(dev, "arm,psci-0.2") ||
+ device_is_compatible(dev, "arm,psci-1.0")) {
int ret;
/* bind psci-sysreset optionally */