提交 70ec9054 编写于 作者: J John Crispin

MIPS: lantiq: external irq sources are not loaded properly

Support for the external interrupt unit was broken when the code was converted
to devicetree support.
Signed-off-by: NJohn Crispin <blogic@openwrt.org>
Patchwork: http://patchwork.linux-mips.org/patch/4231/
上级 9c1628b6
...@@ -341,7 +341,7 @@ int __init icu_of_init(struct device_node *node, struct device_node *parent) ...@@ -341,7 +341,7 @@ int __init icu_of_init(struct device_node *node, struct device_node *parent)
/* the external interrupts are optional and xway only */ /* the external interrupts are optional and xway only */
eiu_node = of_find_compatible_node(NULL, NULL, "lantiq,eiu"); eiu_node = of_find_compatible_node(NULL, NULL, "lantiq,eiu");
if (eiu_node && of_address_to_resource(eiu_node, 0, &res)) { if (eiu_node && !of_address_to_resource(eiu_node, 0, &res)) {
/* find out how many external irq sources we have */ /* find out how many external irq sources we have */
const __be32 *count = of_get_property(node, const __be32 *count = of_get_property(node,
"lantiq,count", NULL); "lantiq,count", NULL);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册