static int __init omap2_common_pm_init(void) { omap2_init_processor_devices(); if (cpu_is_omap34xx()) omap3_pm_init_opp_table(); else if (cpu_is_omap44xx()) omap4_pm_init_opp_table(); omap_pm_if_init(); return 0; }
static int __init omap2_common_pm_init(void) { omap2_init_processor_devices(); if (cpu_is_omap34xx()) omap3_pm_init_opp_table(); else if (cpu_is_omap44xx()) omap4_pm_init_opp_table(); omap_pm_if_init(); #ifdef CONFIG_OMAP_PM { int error = -EINVAL; error = sysfs_create_file(power_kobj, &dsp_freq_attr.attr); if (error) { printk(KERN_ERR "%s: sysfs_create_file(dsp_freq) failed %d\n", __func__, error); return error; } error = sysfs_create_file(power_kobj, &vdd1_opp_attr.attr); if (error) { printk(KERN_ERR "%s: sysfs_create_file(vdd1_opp) failed %d\n", __func__, error); return error; } error = sysfs_create_file(power_kobj, &vdd2_opp_attr.attr); if (error) { printk(KERN_ERR "%s: sysfs_create_file(vdd2_opp) failed %d\n", __func__, error); return error; } error = sysfs_create_file(power_kobj, &vdd1_lock_attr.attr); if (error) { printk(KERN_ERR "%s: sysfs_create_file(vdd1_lock) failed %d\n", __func__ ,error); return error; } error = sysfs_create_file(power_kobj, &vdd2_lock_attr.attr); if (error) { printk(KERN_ERR "%s: sysfs_create_file(vdd2_lock) failed %d\n", __func__, error); return error; } error = sysfs_create_file(power_kobj, &tick_control_attr.attr); if (error) { printk(KERN_ERR "%s: sysfs_create_file(tick_control) failed: %d\n", __func__, error); return error; } } #endif return 0; }