summaryrefslogtreecommitdiff
path: root/drivers/of/address.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/of/address.c')
-rw-r--r--drivers/of/address.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/of/address.c b/drivers/of/address.c
index 4c0b169ef9bf..3fda1f33e09c 100644
--- a/drivers/of/address.c
+++ b/drivers/of/address.c
@@ -879,6 +879,8 @@ static int __of_address_to_resource(struct device_node *dev, int index, int bar_
* @index: Index into the array
* @r: Pointer to resource array
*
+ * Returns -EINVAL if the range cannot be converted to resource.
+ *
* Note that if your address is a PIO address, the conversion will fail if
* the physical address can't be internally converted to an IO token with
* pci_address_to_pio(), that is because it's either called too early or it