|
@@ -39,7 +39,7 @@ static const char *phy_modes[] = {
|
|
* The function gets phy interface string from property 'phy-mode',
|
|
* The function gets phy interface string from property 'phy-mode',
|
|
* and return its index in phy_modes table, or errno in error case.
|
|
* and return its index in phy_modes table, or errno in error case.
|
|
*/
|
|
*/
|
|
-const int of_get_phy_mode(struct device_node *np)
|
|
|
|
|
|
+int of_get_phy_mode(struct device_node *np)
|
|
{
|
|
{
|
|
const char *pm;
|
|
const char *pm;
|
|
int err, i;
|
|
int err, i;
|