提交 d8d74777 编写于 作者: D David Gounaris 提交者: David S. Miller

net/wan/fsl_ucc_hdlc: allow ucc index up to 7

There is a need to allow higher indexes to be
able to support MPC83xx platforms. (UCC1-UCC8)
Signed-off-by: NDavid Gounaris <david.gounaris@infinera.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 68ddc82a
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册