void __init mapphone_cpcap_client_init(void)
{
	int i;

	for (i = 0; i < ARRAY_SIZE(cpcap_devices); i++)
		cpcap_device_register(cpcap_devices[i]);

	if (is_cpcap_kpad_on() > 0)
		cpcap_device_register(&cpcap_kpad_led);

	if (is_ld_cpcap_kpad_on() > 0)
		cpcap_device_register(&ld_cpcap_kpad_led);

	if (ld_cpcap_disp_button_init() > 0)
		cpcap_device_register(&ld_cpcap_disp_button_led);

	if (cpcap_button_init() > 0)
		cpcap_device_register(&cpcap_button_led);

	if (is_disp_led_on() > 0)
		cpcap_device_register(&cpcap_display_led);

	if (led_cpcap_lm3554_init() > 0)
		cpcap_device_register(&cpcap_lm3554);

	if (led_cpcap_lm3559_init() > 0)
		cpcap_device_register(&cpcap_lm3559);

	if (is_ld_cpcap_rgb_on() > 0)
		cpcap_device_register(&cpcap_rgb_led);

	if (!is_cpcap_vio_supply_converter())
		cpcap_device_register(&cpcap_vio_active_device);
}
void __init mapphone_cpcap_client_init(void)
{
	int i;

#ifdef CONFIG_SOUND_CPCAP_OMAP
	get_cpcap_audio_data();
#endif

	for (i = 0; i < ARRAY_SIZE(cpcap_devices); i++)
		cpcap_device_register(cpcap_devices[i]);

	if (is_cpcap_kpad_on() > 0)
		cpcap_device_register(&cpcap_kpad_led);

	if (is_ld_cpcap_kpad_on() > 0)
		cpcap_device_register(&ld_cpcap_kpad_led);

	if (ld_cpcap_disp_button_init() > 0)
		cpcap_device_register(&ld_cpcap_disp_button_led);

	if (cpcap_button_init() > 0)
		cpcap_device_register(&cpcap_button_led);

	if (is_disp_led_on() > 0)
		cpcap_device_register(&cpcap_display_led);

	if (led_cpcap_lm3554_init() > 0)
		cpcap_device_register(&cpcap_lm3554);

	if (led_cpcap_lm3559_init() > 0)
		cpcap_device_register(&cpcap_lm3559);

	if (is_ld_cpcap_rgb_on() > 0)
		cpcap_device_register(&cpcap_rgb_led);

	if (!is_cpcap_vio_supply_converter())
		cpcap_device_register(&cpcap_vio_active_device);

#ifdef CONFIG_PM_DBG_DRV
	get_pm_dbg_drvdata();
	cpcap_device_register(&cpcap_pm_dbg_device);
	platform_set_drvdata(&cpcap_pm_dbg_device, &cpcap_pm_dbg_drvdata);
#endif
}