[PATCH 1/2] drm/sun4i: Remove redundant call to drm_connector_unregister_all()

Sean Paul seanpaul at chromium.org
Wed Jul 13 11:23:29 PDT 2016


On Wed, Jul 13, 2016 at 9:39 AM, Chris Wilson <chris at chris-wilson.co.uk> wrote:
> drm_connector_unregister_all() is automatically called by
> drm_dev_unregister() and so the manual call can be dropped.
>
> Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>
> Cc: Daniel Vetter <daniel.vetter at ffwll.ch>
> Cc: Maxime Ripard <maxime.ripard at free-electrons.com>
> Cc: David Airlie <airlied at linux.ie>
> Cc: Chen-Yu Tsai <wens at csie.org>
> Cc: dri-devel at lists.freedesktop.org
> Cc: linux-arm-kernel at lists.infradead.org



Reviewed-by: Sean Paul <seanpaul at chromium.org>

> ---
>  drivers/gpu/drm/sun4i/sun4i_drv.c | 1 -
>  1 file changed, 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/sun4i/sun4i_drv.c b/drivers/gpu/drm/sun4i/sun4i_drv.c
> index 4dc543e1db10..7092daaf6c43 100644
> --- a/drivers/gpu/drm/sun4i/sun4i_drv.c
> +++ b/drivers/gpu/drm/sun4i/sun4i_drv.c
> @@ -185,7 +185,6 @@ static void sun4i_drv_unbind(struct device *dev)
>  {
>         struct drm_device *drm = dev_get_drvdata(dev);
>
> -       drm_connector_unregister_all(drm);
>         drm_dev_unregister(drm);
>         drm_kms_helper_poll_fini(drm);
>         sun4i_framebuffer_free(drm);
> --
> 2.8.1
>
> _______________________________________________
> dri-devel mailing list
> dri-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/dri-devel



More information about the linux-arm-kernel mailing list