Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Geert Uytterhoeven and committed by
Rob Herring
65b6b046 7be5e675

+1 -1
+1 -1
drivers/of/address.c
··· 213 213 * @res: pointer to a valid resource that will be updated to 214 214 * reflect the values contained in the range. 215 215 * 216 - * Returns EINVAL if the range cannot be converted to resource. 216 + * Returns -EINVAL if the range cannot be converted to resource. 217 217 * 218 218 * Note that if the range is an IO range, the resource will be converted 219 219 * using pci_address_to_pio() which can fail if it is called too early or