Skip to content

Commit 8098a93

Browse files
martenlibroonie
authored andcommitted
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>
1 parent a34e035 commit 8098a93

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

drivers/spi/spi-pl022.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2217,8 +2217,8 @@ static int pl022_probe(struct amba_device *adev, const struct amba_id *id)
22172217
amba_set_drvdata(adev, pl022);
22182218
status = devm_spi_register_master(&adev->dev, master);
22192219
if (status != 0) {
2220-
dev_err(&adev->dev,
2221-
"probe - problem registering spi master\n");
2220+
dev_err_probe(&adev->dev, status,
2221+
"problem registering spi master\n");
22222222
goto err_spi_register;
22232223
}
22242224
dev_dbg(dev, "probe succeeded\n");

0 commit comments

Comments
 (0)