aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/of
diff options
context:
space:
mode:
authorKevin Cernekee <cernekee@gmail.com>2014-11-12 15:54:00 -0500
committerGrant Likely <grant.likely@linaro.org>2014-11-18 12:32:07 -0500
commit25c7a1de6c4b9f9eb867af4dc9215bbf9e08ef2e (patch)
tree6a985b1997166c88b87146a10bc3ffef2cf342ac /drivers/of
parenta0212ae0be5ba10b6e01b7121f86e391ae1927ae (diff)
of: Fix of_device_is_compatible() comment
This function passes back a value from __of_device_is_compatible(), which returns a score in the range 0..11, not a bool. Signed-off-by: Kevin Cernekee <cernekee@gmail.com> Signed-off-by: Grant Likely <grant.likely@linaro.org>
Diffstat (limited to 'drivers/of')
-rw-r--r--drivers/of/base.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/of/base.c b/drivers/of/base.c
index 6137f18d4244..4627e0acf4ad 100644
--- a/drivers/of/base.c
+++ b/drivers/of/base.c
@@ -500,7 +500,7 @@ EXPORT_SYMBOL(of_device_is_compatible);
500 * of_machine_is_compatible - Test root of device tree for a given compatible value 500 * of_machine_is_compatible - Test root of device tree for a given compatible value
501 * @compat: compatible string to look for in root node's compatible property. 501 * @compat: compatible string to look for in root node's compatible property.
502 * 502 *
503 * Returns true if the root node has the given value in its 503 * Returns a positive integer if the root node has the given value in its
504 * compatible property. 504 * compatible property.
505 */ 505 */
506int of_machine_is_compatible(const char *compat) 506int of_machine_is_compatible(const char *compat)