From: Liang He <windhl@126.com>
To: airlied@linux.ie, orsonzhai@gmail.com, baolin.wang7@gmail.com,
zhang.lyra@gmail.com, windhl@126.com,
dri-devel@lists.freedesktop.org
Subject: [PATCH] drm/sprd: Remove of_node_put() in sprd_crtc_init()
Date: Thu, 7 Jul 2022 10:50:35 +0800 [thread overview]
Message-ID: <20220707025035.307733-1-windhl@126.com> (raw)
As the new reference created in 'dpu->base.port' will be escaped out,
we need not to call of_node_put() again.
Fixes: b07bcf34b6c9 ("drm/sprd: add Unisoc's drm display controller driver")
Signed-off-by: Liang He <windhl@126.com>
---
drivers/gpu/drm/sprd/sprd_dpu.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/gpu/drm/sprd/sprd_dpu.c b/drivers/gpu/drm/sprd/sprd_dpu.c
index 1637203ea103..e1b70f989da5 100644
--- a/drivers/gpu/drm/sprd/sprd_dpu.c
+++ b/drivers/gpu/drm/sprd/sprd_dpu.c
@@ -741,7 +741,6 @@ static struct sprd_dpu *sprd_crtc_init(struct drm_device *drm,
return ERR_PTR(-EINVAL);
}
dpu->base.port = port;
- of_node_put(port);
return dpu;
}
--
2.25.1
next reply other threads:[~2022-07-07 2:51 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-07-07 2:50 Liang He [this message]
2022-07-08 9:25 ` [PATCH] drm/sprd: Remove of_node_put() in sprd_crtc_init() Chunyan Zhang
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=20220707025035.307733-1-windhl@126.com \
--to=windhl@126.com \
--cc=airlied@linux.ie \
--cc=baolin.wang7@gmail.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=orsonzhai@gmail.com \
--cc=zhang.lyra@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.