]> git.ipfire.org Git - thirdparty/linux.git/commit
soc: fsl: cpm1: qmc: Fix error check for devm_ioremap_resource() in qmc_qe_init_resou...
authorChen Ni <nichen@iscas.ac.cn>
Mon, 9 Feb 2026 01:59:04 +0000 (09:59 +0800)
committerChristophe Leroy (CS GROUP) <chleroy@kernel.org>
Mon, 23 Feb 2026 13:49:27 +0000 (14:49 +0100)
commit3f4e403304186d79fddace860360540fc3af97f9
treee19c1c4333798e474c764576cc99c44aa932d02b
parent014077044e874e270ec480515edbc1cadb976cf2
soc: fsl: cpm1: qmc: Fix error check for devm_ioremap_resource() in qmc_qe_init_resources()

Fix wrong variable used for error checking after devm_ioremap_resource()
call. The function checks qmc->scc_pram instead of qmc->dpram, which
could lead to incorrect error handling.

Fixes: eb680d563089 ("soc: fsl: cpm1: qmc: Add support for QUICC Engine (QE) implementation")
Signed-off-by: Chen Ni <nichen@iscas.ac.cn>
Acked-by: Herve Codina <herve.codina@bootlin.com>
Link: https://lore.kernel.org/r/20260209015904.871269-1-nichen@iscas.ac.cn
Signed-off-by: Christophe Leroy (CS GROUP) <chleroy@kernel.org>
drivers/soc/fsl/qe/qmc.c