mirror of
https://github.com/torvalds/linux.git
synced 2026-06-08 14:42:37 +02:00
mfd: rk805: fix submodules node available match error
include: rtc, gpio, pwrkey Change-Id: I3c91e2ade911017125c80008c122f4bf484767f3 Signed-off-by: chenjh <chenjh@rock-chips.com>
This commit is contained in:
parent
d8b1268195
commit
8f704d158a
|
|
@ -181,7 +181,7 @@ static int rk8xx_gpio_probe(struct platform_device *pdev)
|
|||
struct device_node *np;
|
||||
int ret;
|
||||
|
||||
np = of_find_node_by_name(pdev->dev.parent->of_node, "gpio");
|
||||
np = of_get_child_by_name(pdev->dev.parent->of_node, "gpio");
|
||||
if (np) {
|
||||
if (!of_device_is_available(np)) {
|
||||
dev_info(&pdev->dev, "device is disabled\n");
|
||||
|
|
|
|||
|
|
@ -59,7 +59,7 @@ static int rk8xx_pwrkey_probe(struct platform_device *pdev)
|
|||
int fall_irq, rise_irq, err;
|
||||
struct device_node *np;
|
||||
|
||||
np = of_find_node_by_name(pdev->dev.parent->of_node, "pwrkey");
|
||||
np = of_get_child_by_name(pdev->dev.parent->of_node, "pwrkey");
|
||||
if (np) {
|
||||
if (!of_device_is_available(np)) {
|
||||
dev_info(&pdev->dev, "device is disabled\n");
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user