diff options
Diffstat (limited to 'arch/powerpc/kernel/isa-bridge.c')
-rw-r--r-- | arch/powerpc/kernel/isa-bridge.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/powerpc/kernel/isa-bridge.c b/arch/powerpc/kernel/isa-bridge.c index fda3ae48480c..0e7099da4f25 100644 --- a/arch/powerpc/kernel/isa-bridge.c +++ b/arch/powerpc/kernel/isa-bridge.c | |||
@@ -327,8 +327,7 @@ static int isa_bridge_notify(struct notifier_block *nb, unsigned long action, | |||
327 | /* Check if we have no ISA device, and this happens to be one, | 327 | /* Check if we have no ISA device, and this happens to be one, |
328 | * register it as such if it has an OF device | 328 | * register it as such if it has an OF device |
329 | */ | 329 | */ |
330 | if (!isa_bridge_devnode && devnode && devnode->type && | 330 | if (!isa_bridge_devnode && of_node_is_type(devnode, "isa")) |
331 | !strcmp(devnode->type, "isa")) | ||
332 | isa_bridge_find_late(pdev, devnode); | 331 | isa_bridge_find_late(pdev, devnode); |
333 | 332 | ||
334 | return 0; | 333 | return 0; |