projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
68ddc82
)
net/wan/fsl_ucc_hdlc: allow ucc index up to 7
author
David Gounaris
<david.gounaris@infinera.com>
Mon, 3 Sep 2018 12:47:25 +0000
(14:47 +0200)
committer
David S. Miller
<davem@davemloft.net>
Tue, 4 Sep 2018 05:14:41 +0000
(22:14 -0700)
There is a need to allow higher indexes to be
able to support MPC83xx platforms. (UCC1-UCC8)
Signed-off-by: David Gounaris <david.gounaris@infinera.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/wan/fsl_ucc_hdlc.c
patch
|
blob
|
history
diff --git
a/drivers/net/wan/fsl_ucc_hdlc.c
b/drivers/net/wan/fsl_ucc_hdlc.c
index 5f0366a125e2605b8c78f54c11004cd5ea37a533..f2252e87ce43243a82aba1d99c191acd7a13caf0 100644
(file)
--- 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 > (UCC_MAX_NUM - 1) || ucc_num < 0
) {
dev_err(&pdev->dev, ": Invalid UCC num\n");
return -EINVAL;
}