Name

of_modalias_node — lookup appropriate modalias for a device node

Synopsis

int of_modalias_node (struct device_node * node,
 char * modalias,
 int len);
 

Arguments

node

Pointer to node containing compatible property

modalias

Points to a char * used to return the modalias string

len

Length of modalias

Description

Based on the value of the compatible property, this routine will attempt to choose an appropriate modalias value for a particular device tree node. It does this by stripping the manufacturer prefix (as delimited by a ',') from the first entry in the compatible list property.

Return

0 on success, -ENODEV if no compatible property exists.