[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20180828110921.2542-2-david.gounaris@infinera.com>
Date: Tue, 28 Aug 2018 13:09:16 +0200
From: David Gounaris <david.gounaris@...inera.com>
To: qiang.zhao@....com, netdev@...r.kernel.org,
linuxppc-dev@...ts.ozlabs.org
Cc: David Gounaris <david.gounaris@...inera.com>
Subject: [PATCH 1/6] net/wan/fsl_ucc_hdlc: allow ucc index up to 4
There is a need to allow higher indexes to be
able to support MPC83xx platforms. (UCC1-UCC5)
Signed-off-by: David Gounaris <david.gounaris@...inera.com>
---
drivers/net/wan/fsl_ucc_hdlc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/wan/fsl_ucc_hdlc.c b/drivers/net/wan/fsl_ucc_hdlc.c
index 5f0366a125e2..3c0e0a1d19ba 100644
--- a/drivers/net/wan/fsl_ucc_hdlc.c
+++ b/drivers/net/wan/fsl_ucc_hdlc.c
@@ -1015,7 +1015,7 @@ static int ucc_hdlc_probe(struct platform_device *pdev)
}
ucc_num = val - 1;
- if ((ucc_num > 3) || (ucc_num < 0)) {
+ if ((ucc_num > 4) || (ucc_num < 0)) {
dev_err(&pdev->dev, ": Invalid UCC num\n");
return -EINVAL;
}
--
2.13.6
Powered by blists - more mailing lists