diff options
author | Mårten Lindahl <marten.lindahl@axis.com> | 2023-06-02 20:12:54 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2023-06-02 20:15:42 +0200 |
commit | 8098a931c080d32687aee72a1dfac98507a6034b (patch) | |
tree | a02b7f8a04129d3a82b9c713cc76ddbe4f308f71 /drivers/spi | |
parent | spi: spi-imx: fix mixing of native and gpio chipselects for imx51/imx53/imx6 ... (diff) | |
download | linux-8098a931c080d32687aee72a1dfac98507a6034b.tar.xz linux-8098a931c080d32687aee72a1dfac98507a6034b.zip |
spi: spl022: Probe defer is no error
When the spi controller is registered and the cs_gpiods cannot be
assigned, causing a defer of the probe, there is an error print saying:
"probe - problem registering spi master"
This should not be announced as an error. Print this message for all
errors except for the probe defer.
Signed-off-by: Mårten Lindahl <marten.lindahl@axis.com>
Link: https://lore.kernel.org/r/20230602-pl022-defer-fix-v2-1-383f6bc2293a@axis.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/spi')
-rw-r--r-- | drivers/spi/spi-pl022.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/spi/spi-pl022.c b/drivers/spi/spi-pl022.c index 982407bc5d9f..1af75eff26b6 100644 --- a/drivers/spi/spi-pl022.c +++ b/drivers/spi/spi-pl022.c @@ -2217,8 +2217,8 @@ static int pl022_probe(struct amba_device *adev, const struct amba_id *id) amba_set_drvdata(adev, pl022); status = devm_spi_register_master(&adev->dev, master); if (status != 0) { - dev_err(&adev->dev, - "probe - problem registering spi master\n"); + dev_err_probe(&adev->dev, status, + "problem registering spi master\n"); goto err_spi_register; } dev_dbg(dev, "probe succeeded\n"); |