summaryrefslogtreecommitdiff
path: root/drivers/rtc
diff options
context:
space:
mode:
authorchenjh <chenjh@rock-chips.com>2017-02-24 14:35:56 +0800
committerchenjh <chenjh@rock-chips.com>2017-02-24 14:40:40 +0800
commit8f704d158ac32da0fabea8a38acad894719a990e (patch)
tree4c07ebd6c3d555ca797f7e8163ede3b8ceda9c88 /drivers/rtc
parentd8b1268195a5a7917b5b19b0883917fe63cf6612 (diff)
mfd: rk805: fix submodules node available match error
include: rtc, gpio, pwrkey Change-Id: I3c91e2ade911017125c80008c122f4bf484767f3 Signed-off-by: chenjh <chenjh@rock-chips.com>
Diffstat (limited to 'drivers/rtc')
-rw-r--r--drivers/rtc/rtc-rk808.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/rtc/rtc-rk808.c b/drivers/rtc/rtc-rk808.c
index 55406c430232..e6274327b43d 100644
--- a/drivers/rtc/rtc-rk808.c
+++ b/drivers/rtc/rtc-rk808.c
@@ -381,7 +381,7 @@ static int rk808_rtc_probe(struct platform_device *pdev)
switch (rk808->variant) {
case RK805_ID:
- np = of_find_node_by_name(pdev->dev.parent->of_node, "rtc");
+ np = of_get_child_by_name(pdev->dev.parent->of_node, "rtc");
if (np && !of_device_is_available(np)) {
dev_info(&pdev->dev, "device is disabled\n");
return -EINVAL;