|
@@ -176,9 +176,12 @@ void cpsw_phy_sel(struct device *dev, phy_interface_t phy_mode, int slave)
|
|
|
}
|
|
|
|
|
|
dev = bus_find_device(&platform_bus_type, NULL, node, match);
|
|
|
+ of_node_put(node);
|
|
|
priv = dev_get_drvdata(dev);
|
|
|
|
|
|
priv->cpsw_phy_sel(priv, phy_mode, slave);
|
|
|
+
|
|
|
+ put_device(dev);
|
|
|
}
|
|
|
EXPORT_SYMBOL_GPL(cpsw_phy_sel);
|
|
|
|