]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
drm/imx/dcss: have all init functions use devres
authorPhilipp Stanner <pstanner@redhat.com>
Wed, 24 Jan 2024 11:19:05 +0000 (12:19 +0100)
committerLaurentiu Palcu <laurentiu.palcu@oss.nxp.com>
Fri, 2 Feb 2024 13:36:21 +0000 (15:36 +0200)
commit2bb98fc1d4a7715da3cb429d77731b0d1d2d3903
treee98d498a19f3cec162f6add63c1507c9ae9606f3
parent90393c9b5408cafededdee2f34082c4c3c671901
drm/imx/dcss: have all init functions use devres

dcss currently allocates and ioremaps quite a few resources in its probe
function's call graph. Devres now provides convenient functions which
perform the same task but do the cleanup automatically.

Port all memory allocations and ioremap() calls to the devres
counterparts.

Signed-off-by: Philipp Stanner <pstanner@redhat.com>
Reviewed-by: Laurentiu Palcu <laurentiu.palcu@oss.nxp.com>
Signed-off-by: Laurentiu Palcu <laurentiu.palcu@oss.nxp.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240124111904.18261-4-pstanner@redhat.com
drivers/gpu/drm/imx/dcss/dcss-blkctl.c
drivers/gpu/drm/imx/dcss/dcss-ctxld.c
drivers/gpu/drm/imx/dcss/dcss-dev.c
drivers/gpu/drm/imx/dcss/dcss-dev.h
drivers/gpu/drm/imx/dcss/dcss-dpr.c
drivers/gpu/drm/imx/dcss/dcss-drv.c
drivers/gpu/drm/imx/dcss/dcss-dtg.c
drivers/gpu/drm/imx/dcss/dcss-scaler.c
drivers/gpu/drm/imx/dcss/dcss-ss.c