On 16/01/2020 13:14, Lukas Wunner wrote: > Suppress a gratuitous error message if serial8250_register_8250_port() > returns -EPROBE_DEFER. > > Signed-off-by: Lukas Wunner <lukas@xxxxxxxxx> Reviewed-by: Matthias Brugger <mbrugger@xxxxxxxx> > --- > drivers/tty/serial/8250/8250_bcm2835aux.c | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-) > > diff --git a/drivers/tty/serial/8250/8250_bcm2835aux.c b/drivers/tty/serial/8250/8250_bcm2835aux.c > index 33da68341c3a..fb850d0ad643 100644 > --- a/drivers/tty/serial/8250/8250_bcm2835aux.c > +++ b/drivers/tty/serial/8250/8250_bcm2835aux.c > @@ -95,8 +95,9 @@ static int bcm2835aux_serial_probe(struct platform_device *pdev) > /* register the port */ > ret = serial8250_register_8250_port(&data->uart); > if (ret < 0) { > - dev_err(&pdev->dev, "unable to register 8250 port - %d\n", > - ret); > + if (ret != -EPROBE_DEFER) > + dev_err(&pdev->dev, > + "unable to register 8250 port - %d\n", ret); > goto dis_clk; > } > data->line = ret; >