]> git.apps.os.sepia.ceph.com Git - ceph-client.git/commit
pmdomain: imx: gpcv2: replace dev_err() with dev_err_probe()
authorDario Binacchi <dario.binacchi@amarulasolutions.com>
Fri, 25 Oct 2024 16:03:56 +0000 (18:03 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Thu, 31 Oct 2024 10:41:20 +0000 (11:41 +0100)
commitda3d242cf169a6e8a4be6eea7411c65083e6ce75
tree45bae8a35c0e38eca8c794f746682fd972151233
parent88e98cd5d3b98df245e439345b139745e1174f57
pmdomain: imx: gpcv2: replace dev_err() with dev_err_probe()

The patch standardizes the probe() code by replacing the two occurrences
of dev_err() with dev_err_probe(). Indeed, dev_err_probe() was used in all
other error paths of the probe() function.
Note that dev_err_probe() has advantages even if the error code is not
EPROBE_DEFER, such as the symbolic output of the error code. Therefore,
it should generally be preferred over dev_err().

Co-developed-by: Michael Trimarchi <michael@amarulasolutions.com>
Signed-off-by: Michael Trimarchi <michael@amarulasolutions.com>
Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>
Reviewed-by: Marco Felsch <m.felsch@pengutronix.de>
Message-ID: <20241025160430.4113467-1-dario.binacchi@amarulasolutions.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/pmdomain/imx/gpcv2.c