bcm27xx: update patches from RPi foundation
[oweals/openwrt.git] / target / linux / bcm27xx / patches-5.4 / 950-0093-serial-8250-bcm2835aux-suppress-EPROBE_DEFER.patch
1 From 0be798c7e5f6bab2af57b79e9fde89dcccc7d5ba Mon Sep 17 00:00:00 2001
2 From: Phil Elwell <phil@raspberrypi.org>
3 Date: Mon, 22 Jan 2018 17:26:38 +0000
4 Subject: [PATCH] serial: 8250: bcm2835aux - suppress EPROBE_DEFER
5
6 Signed-off-by: Phil Elwell <phil@raspberrypi.org>
7 ---
8  drivers/tty/serial/8250/8250_bcm2835aux.c | 3 ++-
9  1 file changed, 2 insertions(+), 1 deletion(-)
10
11 --- a/drivers/tty/serial/8250/8250_bcm2835aux.c
12 +++ b/drivers/tty/serial/8250/8250_bcm2835aux.c
13 @@ -50,7 +50,8 @@ static int bcm2835aux_serial_probe(struc
14         data->clk = devm_clk_get(&pdev->dev, NULL);
15         ret = PTR_ERR_OR_ZERO(data->clk);
16         if (ret) {
17 -               dev_err(&pdev->dev, "could not get clk: %d\n", ret);
18 +               if (ret != -EPROBE_DEFER)
19 +                       dev_err(&pdev->dev, "could not get clk: %d\n", ret);
20                 return ret;
21         }
22