[PATCH] gpio: mxc: Register syscore callbacks after the platform driver

Peng Fan (OSS) peng.fan at oss.nxp.com
Sun Nov 29 21:49:11 PST 2026


On Fri, 27 Nov 2026 19:33:31 +0800 Tian Xuechen <202300460064 at mail.sdu.edu.cn> wrote:

> From: Tian Xuechen <202300460064 at mail.sdu.edu.cn>
> 
> If platform driver registration fails, module initialization returns an
> error with the syscore callbacks still registered. Register the
> callbacks only after the driver has been registered successfully.
> 
> This issue was found by our static analysis tool under development.
> 
> Fixes: 1a5287a3dbc3 ("gpio: mxc: move gpio noirq suspend/resume to syscore phase")
> Signed-off-by: Tian Xuechen <202300460064 at mail.sdu.edu.cn>

Reviewed-by: Peng Fan <peng.fan at nxp.com>



More information about the linux-arm-kernel mailing list