[PATCH] drm/rcar-du: dw-hdmi: Fix compilation
Sean Paul
seanpaul at chromium.org
Fri Feb 16 15:53:08 UTC 2018
On Fri, Feb 16, 2018 at 04:44:12PM +0100, Maxime Ripard wrote:
> Commit eea034af90c6 ("drm/bridge/synopsys: dw-hdmi: don't clobber drvdata")
> broke the build with one build error and one warning. Fix both.
Reviewed-by: Sean Paul <seanpaul at chromium.org>
>
> Cc: Archit Taneja <architt at codeaurora.org>
> Cc: Jernej Skrabec <jernej.skrabec at siol.net>
> Cc: Laurent Pinchart <laurent.pinchart at ideasonboard.com>
> Fixes: eea034af90c6 ("drm/bridge/synopsys: dw-hdmi: don't clobber drvdata")
> Reported-by: kbuild test robot <fengguang.wu at intel.com>
> Signed-off-by: Maxime Ripard <maxime.ripard at bootlin.com>
> ---
> drivers/gpu/drm/rcar-du/rcar_dw_hdmi.c | 4 +++-
> 1 file changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/rcar-du/rcar_dw_hdmi.c b/drivers/gpu/drm/rcar-du/rcar_dw_hdmi.c
> index 3bebc6821e9c..76210ae25094 100644
> --- a/drivers/gpu/drm/rcar-du/rcar_dw_hdmi.c
> +++ b/drivers/gpu/drm/rcar-du/rcar_dw_hdmi.c
> @@ -75,11 +75,13 @@ static int rcar_dw_hdmi_probe(struct platform_device *pdev)
> return PTR_ERR(hdmi);
>
> platform_set_drvdata(pdev, hdmi);
> +
> + return 0;
> }
>
> static int rcar_dw_hdmi_remove(struct platform_device *pdev)
> {
> - struct dw_hdmi *hdmi = platform_get_drvdata(dev);
> + struct dw_hdmi *hdmi = platform_get_drvdata(pdev);
>
> dw_hdmi_remove(hdmi);
>
> --
> 2.14.3
>
> _______________________________________________
> dri-devel mailing list
> dri-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/dri-devel
--
Sean Paul, Software Engineer, Google / Chromium OS
More information about the dri-devel
mailing list