From: Kevin Cernekee Date: Wed, 12 Nov 2014 20:54:00 +0000 (-0800) Subject: of: Fix of_device_is_compatible() comment X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=25c7a1de6c4b9f9eb867af4dc9215bbf9e08ef2e;p=deliverable%2Flinux.git 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 Signed-off-by: Grant Likely --- 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); * of_machine_is_compatible - Test root of device tree for a given compatible value * @compat: compatible string to look for in root node's compatible property. * - * Returns true if the root node has the given value in its + * Returns a positive integer if the root node has the given value in its * compatible property. */ int of_machine_is_compatible(const char *compat)