diff options
Diffstat (limited to 'arch/arm/mach-integrator/integrator_ap.c')
-rw-r--r-- | arch/arm/mach-integrator/integrator_ap.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/arch/arm/mach-integrator/integrator_ap.c b/arch/arm/mach-integrator/integrator_ap.c index ea961445e0e9..b23c8e4f28e8 100644 --- a/arch/arm/mach-integrator/integrator_ap.c +++ b/arch/arm/mach-integrator/integrator_ap.c | |||
@@ -536,16 +536,14 @@ static void __init ap_init_of(void) | |||
536 | 'A' + (ap_sc_id & 0x0f)); | 536 | 'A' + (ap_sc_id & 0x0f)); |
537 | 537 | ||
538 | soc_dev = soc_device_register(soc_dev_attr); | 538 | soc_dev = soc_device_register(soc_dev_attr); |
539 | if (IS_ERR_OR_NULL(soc_dev)) { | 539 | if (IS_ERR(soc_dev)) { |
540 | kfree(soc_dev_attr->revision); | 540 | kfree(soc_dev_attr->revision); |
541 | kfree(soc_dev_attr); | 541 | kfree(soc_dev_attr); |
542 | return; | 542 | return; |
543 | } | 543 | } |
544 | 544 | ||
545 | parent = soc_device_to_device(soc_dev); | 545 | parent = soc_device_to_device(soc_dev); |
546 | 546 | integrator_init_sysfs(parent, ap_sc_id); | |
547 | if (!IS_ERR_OR_NULL(parent)) | ||
548 | integrator_init_sysfs(parent, ap_sc_id); | ||
549 | 547 | ||
550 | of_platform_populate(root, of_default_bus_match_table, | 548 | of_platform_populate(root, of_default_bus_match_table, |
551 | ap_auxdata_lookup, parent); | 549 | ap_auxdata_lookup, parent); |