]> git.ipfire.org Git - thirdparty/linux.git/commit
pinctrl: realtek: Fix error check for devm_platform_ioremap_resource()
authorChen Ni <nichen@iscas.ac.cn>
Thu, 12 Mar 2026 03:18:20 +0000 (11:18 +0800)
committerLinus Walleij <linusw@kernel.org>
Mon, 16 Mar 2026 10:13:51 +0000 (11:13 +0100)
commit9ba4ef6847ba53dea92efce47c9e044fbf6d6dcf
tree9621e8086687744e8af336efde63a91042d347ab
parentfc334ad4a1d110754b3ec3abd0805d1ae1cfcc4b
pinctrl: realtek: Fix error check for devm_platform_ioremap_resource()

Replace NULL check with IS_ERR() for devm_platform_ioremap_resource()
return value. Use dev_err_probe() for error handling to maintain
consistency with the rest of the probe function.

Fixes: b7f698b22b8b ("pinctrl: realtek: Switch to use devm functions")
Signed-off-by: Chen Ni <nichen@iscas.ac.cn>
Signed-off-by: Linus Walleij <linusw@kernel.org>
drivers/pinctrl/realtek/pinctrl-rtd.c