mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-04-16 04:13:31 +00:00

* bump qca-nss-dp and ssdk ssdk-shell to 12.1 * [qca-ssdk] delete 0008 patch as 12.1 version do not need this * [ipq807x]: Add support for tplink-tl-er2260t(basic) * remove unused parts in 2260t.dts * NSS:bump nss-drv64 to 12.1r2 (may affect ipq806x) * fix nss-dp source_url * qca-ssdk: refresh ssdk patch
27 lines
898 B
Diff
27 lines
898 B
Diff
diff --git a/src/init/ssdk_plat.c b/src/init/ssdk_plat.c
|
|
index dbb186fa..4b44d218 100755
|
|
--- a/src/init/ssdk_plat.c
|
|
+++ b/src/init/ssdk_plat.c
|
|
@@ -561,7 +561,6 @@ static int miibus_get(a_uint32_t dev_id)
|
|
struct device_node *mdio_node = NULL;
|
|
struct device_node *switch_node = NULL;
|
|
struct platform_device *mdio_plat = NULL;
|
|
- struct ipq40xx_mdio_data *mdio_data = NULL;
|
|
struct qca_phy_priv *priv;
|
|
hsl_reg_mode reg_mode = HSL_REG_LOCAL_BUS;
|
|
priv = qca_phy_priv_global[dev_id];
|
|
@@ -596,12 +595,7 @@ static int miibus_get(a_uint32_t dev_id)
|
|
|
|
if(reg_mode == HSL_REG_LOCAL_BUS)
|
|
{
|
|
- mdio_data = dev_get_drvdata(&mdio_plat->dev);
|
|
- if (!mdio_data) {
|
|
- SSDK_ERROR("cannot get mdio_data reference from device data\n");
|
|
- return 1;
|
|
- }
|
|
- priv->miibus = mdio_data->mii_bus;
|
|
+ priv->miibus = of_mdio_find_bus(mdio_node);
|
|
}
|
|
else
|
|
priv->miibus = dev_get_drvdata(&mdio_plat->dev);
|