diff options
author | Umang Jain <umang.jain@ideasonboard.com> | 2022-12-20 14:21:16 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-01-17 19:12:22 +0100 |
commit | 64f797423379a333e3ba5373ee01353d7029727e (patch) | |
tree | 9dece70676eeff41f86e16ca6229e8ad761931ff | |
parent | 3dbdd92014a410778de8406e9e3253e353f51c2b (diff) |
platform: Document platform_add_devices() return value
platform_add_devices() returns 0 on success and negative
errno on failure. Document it.
Signed-off-by: Umang Jain <umang.jain@ideasonboard.com>
Link: https://lore.kernel.org/r/20221220085116.19837-1-umang.jain@ideasonboard.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/base/platform.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/base/platform.c b/drivers/base/platform.c index a4938d1c8fe1..d6690d705314 100644 --- a/drivers/base/platform.c +++ b/drivers/base/platform.c @@ -499,6 +499,8 @@ EXPORT_SYMBOL_GPL(platform_get_irq_byname_optional); * platform_add_devices - add a numbers of platform devices * @devs: array of platform devices to add * @num: number of platform devices in array + * + * Return: 0 on success, negative error number on failure. */ int platform_add_devices(struct platform_device **devs, int num) { |