> If you use devm_ioremap_resource() you can remove the !res check > entirely which would be equally acceptable as a fix.
Would you like to use the wrapper function “devm_platform_get_and_ioremap_resource” then? https://elixir.bootlin.com/linux/v5.8-rc4/source/drivers/base/platform.c#L66 https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/base/platform.c?id=0dc589da873b58b70f4caf4b070fb0cf70fdd1dc#n66 Regards, Markus