match &= node->type
&& !strcmp(matches->type, node->type);
if (matches->compatible[0])
- match &= device_is_compatible(node,
+ match &= of_device_is_compatible(node,
matches->compatible);
if (match)
return matches;
}
-static ssize_t of_device_get_modalias(struct of_device *ofdev,
- char *str, ssize_t len)
+ssize_t of_device_get_modalias(struct of_device *ofdev,
+ char *str, ssize_t len)
{
const char *compat;
int cplen, i;
ofdev->node->name, ofdev->node->type);
/* Get compatible property if any */
- compat = get_property(ofdev->node, "compatible", &cplen);
+ compat = of_get_property(ofdev->node, "compatible", &cplen);
if (!compat)
return csize;
* it's not really legal to split it out with commas. We split it
* up using a number of environment variables instead. */
- compat = get_property(ofdev->node, "compatible", &cplen);
+ compat = of_get_property(ofdev->node, "compatible", &cplen);
while (compat && *compat && cplen > 0) {
if (add_uevent_var(envp, num_envp, &i,
buffer, buffer_size, &length,
EXPORT_SYMBOL(of_dev_put);
EXPORT_SYMBOL(of_release_dev);
EXPORT_SYMBOL(of_device_uevent);
+EXPORT_SYMBOL(of_device_get_modalias);