summaryrefslogtreecommitdiff
path: root/drivers/rtc
diff options
context:
space:
mode:
authorshengfei Xu <xsf@rock-chips.com>2017-08-21 15:31:03 +0800
committerHuang, Tao <huangtao@rock-chips.com>2017-08-23 20:35:50 +0800
commite7edb8f01775387a2aac3a2a756daee482d435ea (patch)
tree480c61fb83dabb8fef917d023035cf76106bdb3f /drivers/rtc
parent0e601b1acb12580daecb3cf3462407f608e6aed0 (diff)
rtc: rk808: check the rtc is available for rk816
Change-Id: I383c08cd5ad7cb282c0ec0aa12e9e84c9df52ba3 Signed-off-by: shengfei Xu <xsf@rock-chips.com>
Diffstat (limited to 'drivers/rtc')
-rw-r--r--drivers/rtc/rtc-rk808.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/drivers/rtc/rtc-rk808.c b/drivers/rtc/rtc-rk808.c
index 13610ff51377..4279e1a144fd 100644
--- a/drivers/rtc/rtc-rk808.c
+++ b/drivers/rtc/rtc-rk808.c
@@ -381,19 +381,8 @@ static int rk808_rtc_probe(struct platform_device *pdev)
switch (rk808->variant) {
case RK805_ID:
- 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;
- }
- break;
case RK808_ID:
- 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;
- }
- break;
+ case RK816_ID:
case RK818_ID:
np = of_get_child_by_name(pdev->dev.parent->of_node, "rtc");
if (np && !of_device_is_available(np)) {