/* platform_add_devices - add a numbers of platform devices @devs: array of platform devices to add @num: number of platform devices in array  */
int platform_add_devices(struct platform_device **devs, int num)
/* platform_add_devices - add a numbers of platform devices @devs: array of platform devices to add @num: number of platform devices in array  */
int platform_add_devices(struct platform_device **devs, int num)
{
	int i, ret = 0;
	for (i = 0; i < num; i++) {
		ret = platform_device_register(devs[i]);
		if (ret) {
			while (--i >= 0)
				platform_device_unregister(devs[i]);
			break;
		}
	}
	return ret;
}