diff options
author | Geert Uytterhoeven <geert+renesas@glider.be> | 2023-03-31 10:52:29 +0300 |
---|---|---|
committer | Rob Herring <robh@kernel.org> | 2023-04-04 20:12:13 +0300 |
commit | 65b6b046e2b4cec2bd9d4849324d319122d6f2b2 (patch) | |
tree | 1eea726585ae3d3083490765940412c1f26b106a /drivers/of | |
parent | 7be5e675c86d6c473220a0c9e9420a1fdb0d04da (diff) | |
download | linux-65b6b046e2b4cec2bd9d4849324d319122d6f2b2.tar.xz |
of: address: Fix documented return value of of_pci_range_to_resource()
of_pci_range_to_resource() returns a negative instead of a positive
error code.
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://lore.kernel.org/r/bcdaa9332e9c6dfa27af68d79fda121eac2975dc.1680248888.git.geert+renesas@glider.be
Signed-off-by: Rob Herring <robh@kernel.org>
Diffstat (limited to 'drivers/of')
-rw-r--r-- | drivers/of/address.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/of/address.c b/drivers/of/address.c index 3fda1f33e09c..b8a43fd4456b 100644 --- a/drivers/of/address.c +++ b/drivers/of/address.c @@ -213,7 +213,7 @@ EXPORT_SYMBOL_GPL(of_pci_address_to_resource); * @res: pointer to a valid resource that will be updated to * reflect the values contained in the range. * - * Returns EINVAL if the range cannot be converted to resource. + * Returns -EINVAL if the range cannot be converted to resource. * * Note that if the range is an IO range, the resource will be converted * using pci_address_to_pio() which can fail if it is called too early or |