]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
drm/tilcdc: request and mapp iomem with devres
authorPhilipp Stanner <pstanner@redhat.com>
Fri, 22 Dec 2023 11:52:17 +0000 (12:52 +0100)
committerJyri Sarha <jyri.sarha@iki.fi>
Thu, 28 Dec 2023 17:29:04 +0000 (19:29 +0200)
commita196a5166e0812db267281c32fa0724fc5be6582
tree566dd565cd9dd266e30218b6a89107b26e0e5956
parent021a81e7ac8f579b049e5bc76efabd9e67bd627c
drm/tilcdc: request and mapp iomem with devres

tilcdc currently just ioremaps its iomem, without doing the (a bit more
robust) request on the memory first. The devm_ functions provide a handy
way to both request and ioremap the memory with automatic cleanup.

Replace the manual ioremap with the devm_ version.

Suggested-by: Thomas Zimmermann <tzimmermann@suse.de>
Signed-off-by: Philipp Stanner <pstanner@redhat.com>
Reviewed-by: Jyri Sarha <jyri.sarha@iki.fi>
Tested-by: Jyri Sarha <jyri.sarha@iki.fi>
Signed-off-by: Jyri Sarha <jyri.sarha@iki.fi>
Link: https://patchwork.freedesktop.org/patch/msgid/20231222115216.19218-2-pstanner@redhat.com
drivers/gpu/drm/tilcdc/tilcdc_drv.c