]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit - drivers/devfreq/imx-bus.c
PM / devfreq: imx-bus: Fix inconsistent IS_ERR and PTR_ERR
authorGustavo A. R. Silva <gustavoars@kernel.org>
Thu, 7 May 2020 13:12:45 +0000 (08:12 -0500)
committerChanwoo Choi <cw00.choi@samsung.com>
Thu, 28 May 2020 09:02:40 +0000 (18:02 +0900)
commit48bbf6375131155d329eb8e06ae962e27cbba032
tree70c07e260d0bf280b7526192db5f9d0ccc113ead
parenta316b5ca9ead8065ac873e655c313248ecd732bc
PM / devfreq: imx-bus: Fix inconsistent IS_ERR and PTR_ERR

Fix inconsistent IS_ERR and PTR_ERR in imx_bus_init_icc().

The proper pointer to be passed as argument to PTR_ERR() is
priv->icc_pdev.

This bug was detected with the help of Coccinelle.

Fixes: 16c1d2f1b0bd ("PM / devfreq: imx: Register interconnect device")
Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org>
Reviewed-by: Dong Aisheng <aisheng.dong@nxp.com>
[cw00.choi: Edit the patch title from 'imx' to 'imx-bus']
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
drivers/devfreq/imx-bus.c