From: Archit Taneja <architt@codeaurora.org>
To: dri-devel@lists.freedesktop.org, linux-arm-msm@vger.kernel.org
Cc: robdclark@gmail.com, hali@codeaurora.org,
linux-kernel@vger.kernel.org,
Archit Taneja <architt@codeaurora.org>
Subject: [PATCH 1/3] drm/msm: dsi host: add missing of_node_put()
Date: Mon, 22 Jun 2015 20:24:19 +0530 [thread overview]
Message-ID: <1434984861-22948-2-git-send-email-architt@codeaurora.org> (raw)
In-Reply-To: <1434984861-22948-1-git-send-email-architt@codeaurora.org>
Decrement device node refcount if of_get_child_by_name is successfully
called.
Signed-off-by: Archit Taneja <architt@codeaurora.org>
---
drivers/gpu/drm/msm/dsi/dsi_host.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/gpu/drm/msm/dsi/dsi_host.c b/drivers/gpu/drm/msm/dsi/dsi_host.c
index de04009..1751659 100644
--- a/drivers/gpu/drm/msm/dsi/dsi_host.c
+++ b/drivers/gpu/drm/msm/dsi/dsi_host.c
@@ -1582,6 +1582,8 @@ int msm_dsi_host_register(struct mipi_dsi_host *host, bool check_defer)
node = of_get_child_by_name(msm_host->pdev->dev.of_node,
"panel");
if (node) {
+ of_node_put(node);
+
if (!of_drm_find_panel(node))
return -EPROBE_DEFER;
}
--
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
hosted by The Linux Foundation
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
Please read the FAQ at http://www.tux.org/lkml/
next prev parent reply other threads:[~2015-06-22 14:54 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-22 14:54 [PATCH 0/3] drm/msm: Use device graph to parse connected panels Archit Taneja
2015-06-22 14:54 ` Archit Taneja [this message]
2015-06-22 16:00 ` [PATCH 1/3] drm/msm: dsi host: add missing of_node_put() Srinivas Kandagatla
2015-06-23 5:02 ` Archit Taneja
2015-06-22 14:54 ` [PATCH 2/3] drm/msm: dsi host: Use device graph parsing to parse connected panel Archit Taneja
2015-06-22 14:54 ` [PATCH 3/3] drm/msm: mdp4 lvds: get panel node via of graph parsing Archit Taneja
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1434984861-22948-2-git-send-email-architt@codeaurora.org \
--to=architt@codeaurora.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=hali@codeaurora.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=robdclark@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).