Skip to contentSkip to conversation

+ drivers-rtc-rtc-88pm860xc-use-of_get_child_by_name.patch added to -mm tree

PATCH [email protected] 1 participant 1 message Apr 23, 2014 Real time clock (RTC)

lore
Share & tools
lore
#0 lore raw

Subject: + drivers-rtc-rtc-88pm860xc-use-of_get_child_by_name.patch added to -mm tree
To: [email protected],[email protected],[email protected],[email protected],[email protected]
From: [email protected]
Date: Wed, 23 Apr 2014 13:13:49 -0700

The patch titled

     Subject: drivers/rtc/rtc-88pm860x.c: use of_get_child_by_name()
has been added to the -mm tree.  Its filename is
     drivers-rtc-rtc-88pm860xc-use-of_get_child_by_name.patch

This patch should soon appear at

    http://ozlabs.org/~akpm/mmots/broken-out/drivers-rtc-rtc-88pm860xc-use-of_get_child_by_name.patch
and later at
    http://ozlabs.org/~akpm/mmotm/broken-out/drivers-rtc-rtc-88pm860xc-use-of_get_child_by_name.patch

Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/SubmitChecklist when testing your code ***

The -mm tree is included into linux-next and is updated there every 3-4 working days

------------------------------------------------------
From: Krzysztof Kozlowski <[email protected]>
Subject: drivers/rtc/rtc-88pm860x.c: use of_get_child_by_name()

Use of_get_child_by_name() to obtain reference to charger node instead of of_find_node_by_name() which can walk outside of the parent node.

---

 drivers/rtc/rtc-88pm860x.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/rtc/rtc-88pm860x.c renamed from drivers/rtc/rtc-88pm860x.c~drivers-rtc-rtc-88pm860xc-use-of_get_child_by_name +1 -1
diff -puN drivers/rtc/rtc-88pm860x.c~drivers-rtc-rtc-88pm860xc-use-of_get_child_by_name drivers/rtc/rtc-88pm860x.c
@@ -293,7 +293,7 @@ static int pm860x_rtc_dt_init(struct pla
 	int ret;
 	if (!np)
 		return -ENODEV;
-	np = of_find_node_by_name(np, "rtc");
+	np = of_get_child_by_name(np, "rtc");
 	if (!np) {
 		dev_err(&pdev->dev, "failed to find rtc node\n");
 		return -ENODEV;

_

Patches currently in -mm which might be from [email protected] are

drivers-rtc-rtc-88pm860xc-use-of_get_child_by_name.patch drivers-rtc-rtc-88pm860xc-add-missing-of_node_put.patch linux-next.patch mfd-rtc-s5m-do-not-allocate-rtc-i2c-dummy-and-regmap-for-unsupported-chipsets.patch mfd-rtc-sec-s5m-rename-sec-symbols-to-s5m.patch rtc-s5m-remove-undocumented-time-init-on-first-boot.patch rtc-s5m-use-shorter-time-of-register-update.patch rtc-s5m-support-different-register-layout.patch rtc-s5m-add-support-for-s2mps14-rtc.patch rtc-s5m-consolidate-two-device-type-switch-statements.patch