brcm2708: update to latest patches from the RPi foundation
[openwrt/staging/lynxis.git] / target / linux / brcm2708 / patches-4.19 / 950-0109-serial-8250-bcm2835aux-suppress-EPROBE_DEFER.patch
1 From 3d00548e917e42a5d9da031c8dab8a52ff3cd1cc 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 109/725] 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