diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2021-08-06 14:29:52 +0300 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2022-10-19 16:51:04 +0300 |
commit | 96e0e3e3a210ab9c4894da2250bb583dd61ab3a2 (patch) | |
tree | 2063166eb6b782b9c787284ecdf9ecc17ae3ab95 /drivers/gpu/drm/xlnx/zynqmp_dpsub.c | |
parent | 531306f54e84b9502f18db66f81729df7bc5fbe3 (diff) | |
download | linux-96e0e3e3a210ab9c4894da2250bb583dd61ab3a2.tar.xz |
drm: xlnx: zynqmp_dpsub: Don't use drmm_kcalloc() for temporary data
The array of formats passed to drm_universal_plane_init() doesn't need
to outlive the function call, as it's copied internally. Use kcalloc()
instead of drmm_kcalloc() to allocate it, and free it right after usage.
While at it, move the allocation and initialization of the formats array
to a separate function, to prepare for splitting the DRM plane handling
to a separate file.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'drivers/gpu/drm/xlnx/zynqmp_dpsub.c')
0 files changed, 0 insertions, 0 deletions