]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
fbdev: goldfishfb: use devm_platform_ioremap_resource()
authorAmin GATTOUT <amin.gattout@gmail.com>
Tue, 3 Mar 2026 12:22:24 +0000 (13:22 +0100)
committerHelge Deller <deller@gmx.de>
Mon, 9 Mar 2026 12:06:48 +0000 (13:06 +0100)
commit8d10dd8907e1c0e619d5e785365875bb758d43ce
treef18f19af7c185d25bf6b87e544ed684f48894764
parent1f318b96cc84d7c2ab792fcc0bfd42a7ca890681
fbdev: goldfishfb: use devm_platform_ioremap_resource()

Replace the open-coded platform_get_resource() + ioremap() pair with
devm_platform_ioremap_resource(), which requests the memory region and
maps it in a single call, with automatic cleanup on device removal.

Signed-off-by: Amin GATTOUT <amin.gattout@gmail.com>
Reviewed-by: Thomas Zimmermann <tzimmermann@suse.de>
Signed-off-by: Helge Deller <deller@gmx.de>
drivers/video/fbdev/goldfishfb.c