[[linux-4.4.1/platform_device_unregister()]] *参照元 [#s93b4a08] #backlinks *説明 [#hce19569] -パス: [[linux-4.4.1/drivers/base/platform.c]] -FIXME: これは何? --説明 **引数 [#r31d5a1c] -struct platform_device **devs -- --[[linux-4.4.1/platform_device]] -int num -- **返り値 [#we13d537] -int -- **参考 [#r602d7a9] *実装 [#n60514dd] /** * 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]); - --[[linux-4.4.1/platform_device_register()]] if (ret) { while (--i >= 0) platform_device_unregister(devs[i]); break; - --[[linux-4.4.1/platform_device_unregister()]] } } return ret; } EXPORT_SYMBOL_GPL(platform_add_devices); - --[[linux-4.4.1/EXPORT_SYMBOL_GPL()]] *コメント [#o8708dea]