From: Archit Taneja <architt@codeaurora.org>
To: Arnd Bergmann <arnd@arndb.de>
Cc: David Airlie <airlied@linux.ie>,
Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>,
Jose Abreu <Jose.Abreu@synopsys.com>,
Daniel Vetter <daniel.vetter@ffwll.ch>,
Philipp Zabel <p.zabel@pengutronix.de>,
dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] drm: bridge: dw-hdmi: fix building without CONFIG_OF
Date: Tue, 24 Jan 2017 11:59:09 +0530 [thread overview]
Message-ID: <c0aae7bc-e16b-e253-4066-09a3f4bdbc68@codeaurora.org> (raw)
In-Reply-To: <20170123122312.3290934-1-arnd@arndb.de>
On 01/23/2017 05:50 PM, Arnd Bergmann wrote:
> The of_node member in struct drm_bridge is hidden when CONFIG_OF
> is disabled, causing a build error:
>
> drivers/gpu/drm/bridge/dw-hdmi.c: In function '__dw_hdmi_probe':
> drivers/gpu/drm/bridge/dw-hdmi.c:2063:14: error: 'struct drm_bridge' has no member named 'of_node'
>
> We could fix this either using a Kconfig dependency on CONFIG_OF
> or making the one line conditional. The latter gives us better
> compile test coverage, so this is what I'm doing here.
>
> Fixes: 69497eb9234e ("drm: bridge: dw-hdmi: Implement DRM bridge registration")
> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Thanks for fixing this, queued to drm-misc.
Archit
> ---
> drivers/gpu/drm/bridge/dw-hdmi.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/drivers/gpu/drm/bridge/dw-hdmi.c b/drivers/gpu/drm/bridge/dw-hdmi.c
> index 4fda0717e789..9a9ec27d9e28 100644
> --- a/drivers/gpu/drm/bridge/dw-hdmi.c
> +++ b/drivers/gpu/drm/bridge/dw-hdmi.c
> @@ -2060,7 +2060,9 @@ __dw_hdmi_probe(struct platform_device *pdev,
>
> hdmi->bridge.driver_private = hdmi;
> hdmi->bridge.funcs = &dw_hdmi_bridge_funcs;
> +#ifdef CONFIG_OF
> hdmi->bridge.of_node = pdev->dev.of_node;
> +#endif
>
> ret = dw_hdmi_fb_registered(hdmi);
> if (ret)
>
--
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
a Linux Foundation Collaborative Project
prev parent reply other threads:[~2017-01-24 6:29 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-01-23 12:20 Arnd Bergmann
2017-01-24 6:29 ` Archit Taneja [this message]
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=c0aae7bc-e16b-e253-4066-09a3f4bdbc68@codeaurora.org \
--to=architt@codeaurora.org \
--cc=Jose.Abreu@synopsys.com \
--cc=airlied@linux.ie \
--cc=arnd@arndb.de \
--cc=daniel.vetter@ffwll.ch \
--cc=dri-devel@lists.freedesktop.org \
--cc=laurent.pinchart+renesas@ideasonboard.com \
--cc=linux-kernel@vger.kernel.org \
--cc=p.zabel@pengutronix.de \
/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
Powered by JetHome