diff options
author | Grant Likely <grant.likely@secretlab.ca> | 2010-02-01 23:34:14 -0500 |
---|---|---|
committer | Grant Likely <grant.likely@secretlab.ca> | 2010-02-09 10:33:00 -0500 |
commit | 71a157e8edca55198e808f8561dd49017a54ee34 (patch) | |
tree | a78185ea8204f1e375d88545235ba3d4937ebfaf /drivers/of/base.c | |
parent | 89751a7cb70a20f0d604dd7c4be29dd7b0011718 (diff) |
of: add 'of_' prefix to machine_is_compatible()
machine is compatible is an OF-specific call. It should have
the of_ prefix to protect the global namespace.
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Acked-by: Michal Simek <monstr@monstr.eu>
Diffstat (limited to 'drivers/of/base.c')
-rw-r--r-- | drivers/of/base.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/of/base.c b/drivers/of/base.c index 785e9cc1b207..6bc8740c21ad 100644 --- a/drivers/of/base.c +++ b/drivers/of/base.c | |||
@@ -219,13 +219,13 @@ int of_device_is_compatible(const struct device_node *device, | |||
219 | EXPORT_SYMBOL(of_device_is_compatible); | 219 | EXPORT_SYMBOL(of_device_is_compatible); |
220 | 220 | ||
221 | /** | 221 | /** |
222 | * machine_is_compatible - Test root of device tree for a given compatible value | 222 | * of_machine_is_compatible - Test root of device tree for a given compatible value |
223 | * @compat: compatible string to look for in root node's compatible property. | 223 | * @compat: compatible string to look for in root node's compatible property. |
224 | * | 224 | * |
225 | * Returns true if the root node has the given value in its | 225 | * Returns true if the root node has the given value in its |
226 | * compatible property. | 226 | * compatible property. |
227 | */ | 227 | */ |
228 | int machine_is_compatible(const char *compat) | 228 | int of_machine_is_compatible(const char *compat) |
229 | { | 229 | { |
230 | struct device_node *root; | 230 | struct device_node *root; |
231 | int rc = 0; | 231 | int rc = 0; |
@@ -237,7 +237,7 @@ int machine_is_compatible(const char *compat) | |||
237 | } | 237 | } |
238 | return rc; | 238 | return rc; |
239 | } | 239 | } |
240 | EXPORT_SYMBOL(machine_is_compatible); | 240 | EXPORT_SYMBOL(of_machine_is_compatible); |
241 | 241 | ||
242 | /** | 242 | /** |
243 | * of_device_is_available - check if a device is available for use | 243 | * of_device_is_available - check if a device is available for use |