diff options
author | Umang Jain <umang.jain@ideasonboard.com> | 2022-12-20 09:51:16 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-01-17 19:12:22 +0100 |
commit | 64f797423379a333e3ba5373ee01353d7029727e (patch) | |
tree | 9dece70676eeff41f86e16ca6229e8ad761931ff /drivers/base/platform.c | |
parent | software node: Remove unused APIs (diff) | |
download | linux-64f797423379a333e3ba5373ee01353d7029727e.tar.xz linux-64f797423379a333e3ba5373ee01353d7029727e.zip |
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>
Diffstat (limited to 'drivers/base/platform.c')
-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) { |