[Intel-gfx] [PATCH 18/51] drm/<drivers>: Use drmm_add_final_kfree
Russell King - ARM Linux admin
linux at armlinux.org.uk
Sat Feb 22 15:16:24 UTC 2020
On Fri, Feb 21, 2020 at 10:02:46PM +0100, Daniel Vetter wrote:
> These are the leftover drivers that didn't have a ->release hook that
> needed to be updated.
>
> Signed-off-by: Daniel Vetter <daniel.vetter at intel.com>
> Cc: "James (Qian) Wang" <james.qian.wang at arm.com>
> Cc: Liviu Dudau <liviu.dudau at arm.com>
> Cc: Mihail Atanassov <mihail.atanassov at arm.com>
> Cc: Russell King <linux at armlinux.org.uk>
> Cc: Hans de Goede <hdegoede at redhat.com>
> ---
> drivers/gpu/drm/arm/display/komeda/komeda_kms.c | 2 ++
> drivers/gpu/drm/armada/armada_drv.c | 2 ++
> drivers/gpu/drm/vboxvideo/vbox_drv.c | 2 ++
> 3 files changed, 6 insertions(+)
>
> diff --git a/drivers/gpu/drm/armada/armada_drv.c b/drivers/gpu/drm/armada/armada_drv.c
> index 197dca3fc84c..dd9ed71ed942 100644
> --- a/drivers/gpu/drm/armada/armada_drv.c
> +++ b/drivers/gpu/drm/armada/armada_drv.c
> @@ -12,6 +12,7 @@
> #include <drm/drm_atomic_helper.h>
> #include <drm/drm_drv.h>
> #include <drm/drm_ioctl.h>
> +#include <drm/drm_managed.h>
> #include <drm/drm_prime.h>
> #include <drm/drm_probe_helper.h>
> #include <drm/drm_fb_helper.h>
> @@ -103,6 +104,7 @@ static int armada_drm_bind(struct device *dev)
> kfree(priv);
> return ret;
> }
> + drmm_add_final_kfree(&priv->drm, priv);
>
> /* Remove early framebuffers */
> ret = drm_fb_helper_remove_conflicting_framebuffers(NULL,
I have no visibility of what the changes behind this are, so I
can't ack this change.
--
RMK's Patch system: https://www.armlinux.org.uk/developer/patches/
FTTC broadband for 0.8mile line in suburbia: sync at 12.1Mbps down 622kbps up
According to speedtest.net: 11.9Mbps down 500kbps up
More information about the Intel-gfx
mailing list