|
@@ -343,8 +343,7 @@ void __init spider_init_IRQ(void)
|
|
* device-tree is bogus anyway) so all we can do is pray or maybe test
|
|
* device-tree is bogus anyway) so all we can do is pray or maybe test
|
|
* the address and deduce the node-id
|
|
* the address and deduce the node-id
|
|
*/
|
|
*/
|
|
- for (dn = NULL;
|
|
|
|
- (dn = of_find_node_by_name(dn, "interrupt-controller"));) {
|
|
|
|
|
|
+ for_each_node_by_name(dn, "interrupt-controller") {
|
|
if (of_device_is_compatible(dn, "CBEA,platform-spider-pic")) {
|
|
if (of_device_is_compatible(dn, "CBEA,platform-spider-pic")) {
|
|
if (of_address_to_resource(dn, 0, &r)) {
|
|
if (of_address_to_resource(dn, 0, &r)) {
|
|
printk(KERN_WARNING "spider-pic: Failed\n");
|
|
printk(KERN_WARNING "spider-pic: Failed\n");
|