summaryrefslogtreecommitdiff
path: root/drivers/net/ldpaa_eth
diff options
context:
space:
mode:
authorPrabhakar Kushwaha <prabhakar@freescale.com>2015-11-04 12:25:59 +0530
committerYork Sun <yorksun@freescale.com>2015-11-30 08:53:03 -0800
commit1730a17db9a9ce21380ba99eb4d2f10884186cca (patch)
tree72d2aee76db6b124080447f500723d1d72d4a898 /drivers/net/ldpaa_eth
parentfb4a87a73785ad4d6e204978ad727564f9fb58a4 (diff)
downloadu-boot-imx-1730a17db9a9ce21380ba99eb4d2f10884186cca.zip
u-boot-imx-1730a17db9a9ce21380ba99eb4d2f10884186cca.tar.gz
u-boot-imx-1730a17db9a9ce21380ba99eb4d2f10884186cca.tar.bz2
driver: net: fsl-mc: Create DPAA2 object at run-time
Freescale's DPAA2 ethernet driver depends upon the static DPL for the DPRC, DPNI, DPBP, DPIO objects. Instead of static objects, Create DPNI, DPBP, DPIO objects at run-time. Signed-off-by: Prabhakar Kushwaha <prabhakar@freescale.com> Reviewed-by: York Sun <yorksun@freescale.com>
Diffstat (limited to 'drivers/net/ldpaa_eth')
-rw-r--r--drivers/net/ldpaa_eth/ldpaa_eth.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/ldpaa_eth/ldpaa_eth.c b/drivers/net/ldpaa_eth/ldpaa_eth.c
index 99acb7a..cfeb45f 100644
--- a/drivers/net/ldpaa_eth/ldpaa_eth.c
+++ b/drivers/net/ldpaa_eth/ldpaa_eth.c
@@ -601,7 +601,7 @@ static int ldpaa_eth_netdev_init(struct eth_device *net_dev)
return 0;
}
-int ldpaa_eth_init(struct dprc_obj_desc obj_desc)
+int ldpaa_eth_init(int id)
{
struct eth_device *net_dev = NULL;
struct ldpaa_eth_priv *priv = NULL;
@@ -626,7 +626,7 @@ int ldpaa_eth_init(struct dprc_obj_desc obj_desc)
net_dev->priv = (void *)priv;
priv->net_dev = (struct eth_device *)net_dev;
- priv->dpni_id = obj_desc.id;
+ priv->dpni_id = id;
err = ldpaa_eth_netdev_init(net_dev);
if (err)