]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
soc: qcom: smp2p: Simplify code with dev_err_probe()
authorZhang Zekun <zhangzekun11@huawei.com>
Mon, 9 Sep 2024 12:29:21 +0000 (20:29 +0800)
committerBjorn Andersson <andersson@kernel.org>
Tue, 29 Oct 2024 20:04:31 +0000 (15:04 -0500)
commitcd8ec43758a5ca91c5503d1cde2df95e05b968ca
tree4ef7904659abfb8a12f18c71e88b95e59b02010b
parent876b405004842b10a684f06f967502d20d64384f
soc: qcom: smp2p: Simplify code with dev_err_probe()

Use dev_err_probe() directly in the driver probe phase, and we
don't need to judge if the error code is not equal to -EPROBE_DEFER.
This can simplify the code a bit.

Signed-off-by: Zhang Zekun <zhangzekun11@huawei.com>
Link: https://lore.kernel.org/r/20240909122921.12627-5-zhangzekun11@huawei.com
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
drivers/soc/qcom/smp2p.c