drm/qxl: Use drmm_add_final_kfree
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 23 Mar 2020 14:49:06 +0000 (15:49 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 26 Mar 2020 13:50:05 +0000 (14:50 +0100)
commit873863b6214a034e8d4e4bfc8232f65bf9a292fe
tree59ed537b927d336d1d9280f307d6654376cceb0f
parentd0c116adc656e88a36ddc71ff6c9da5e75fc6b44
drm/qxl: Use drmm_add_final_kfree

With this we can drop the final kfree from the release function.

Acked-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
Cc: Dave Airlie <airlied@redhat.com>
Cc: Gerd Hoffmann <kraxel@redhat.com>
Cc: virtualization@lists.linux-foundation.org
Cc: spice-devel@lists.freedesktop.org
Link: https://patchwork.freedesktop.org/patch/msgid/20200323144950.3018436-8-daniel.vetter@ffwll.ch
drivers/gpu/drm/qxl/qxl_drv.c
drivers/gpu/drm/qxl/qxl_kms.c