]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blobdiff - drivers/net/ethernet/ti/cpsw.c
drivers: net: cpsw: davinci_emac: move reading mac id to common file
[mirror_ubuntu-artful-kernel.git] / drivers / net / ethernet / ti / cpsw.c
index c670317f3cb051f96b0a90ec9bb957c5c05376b8..75584cc36339fa7d30eb474866dcef1c5068f639 100644 (file)
@@ -2058,13 +2058,10 @@ no_phy_slave:
                if (mac_addr) {
                        memcpy(slave_data->mac_addr, mac_addr, ETH_ALEN);
                } else {
-                       if (of_machine_is_compatible("ti,am33xx")) {
-                               ret = cpsw_am33xx_cm_get_macid(&pdev->dev,
-                                                       0x630, i,
-                                                       slave_data->mac_addr);
-                               if (ret)
-                                       return ret;
-                       }
+                       ret = ti_cm_get_macid(&pdev->dev, i,
+                                             slave_data->mac_addr);
+                       if (ret)
+                               return ret;
                }
                if (data->dual_emac) {
                        if (of_property_read_u32(slave_node, "dual_emac_res_vlan",