[PATCH] fbdev: wmt_ge_rops: use devm_platform_ioremap_resource()

Helge Deller deller at gmx.de
Thu Mar 5 00:26:08 PST 2026


On 3/4/26 18:10, Amin GATTOUT wrote:
> 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.
> 
> Also reset regbase to NULL in remove() so that the single-instance
> guard in probe() works correctly if the device is re-probed.
> 
> Signed-off-by: Amin GATTOUT <amin.gattout at gmail.com>
> ---
>   drivers/video/fbdev/wmt_ge_rops.c | 18 ++++--------------
>   1 file changed, 4 insertions(+), 14 deletions(-)

applied to fbdev git tree.

Thanks!
Helge



More information about the linux-arm-kernel mailing list