diff options
author | John Crispin <blogic@openwrt.org> | 2015-02-09 12:12:52 +0000 |
---|---|---|
committer | John Crispin <blogic@openwrt.org> | 2015-02-09 12:12:52 +0000 |
commit | f4502d48f72913102ec18f3434c2ad9136fd43c5 (patch) | |
tree | dd0473a34b6136496400e54c752e27cf205a1bc0 /package/kernel/lantiq/ltq-ptm/src | |
parent | d3c5997add663d8b422eec56d9af89197bf30df4 (diff) | |
download | master-187ad058-f4502d48f72913102ec18f3434c2ad9136fd43c5.tar.gz master-187ad058-f4502d48f72913102ec18f3434c2ad9136fd43c5.tar.bz2 master-187ad058-f4502d48f72913102ec18f3434c2ad9136fd43c5.zip |
lantiq: fix dsl drivers for 3.18
Signed-off-by: John Crispin <blogic@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44346 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/kernel/lantiq/ltq-ptm/src')
-rw-r--r-- | package/kernel/lantiq/ltq-ptm/src/ifxmips_ptm_vdsl.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/package/kernel/lantiq/ltq-ptm/src/ifxmips_ptm_vdsl.c b/package/kernel/lantiq/ltq-ptm/src/ifxmips_ptm_vdsl.c index 1b9b710bfb..9c25c154b5 100644 --- a/package/kernel/lantiq/ltq-ptm/src/ifxmips_ptm_vdsl.c +++ b/package/kernel/lantiq/ltq-ptm/src/ifxmips_ptm_vdsl.c @@ -66,7 +66,7 @@ unsigned long cgu_get_pp32_clock(void) return rate; } -static void ptm_setup(struct net_device *, int); +static void ptm_setup(struct net_device *); static struct net_device_stats *ptm_get_stats(struct net_device *); static int ptm_open(struct net_device *); static int ptm_stop(struct net_device *); @@ -134,8 +134,9 @@ unsigned int ifx_ptm_dbg_enable = DBG_ENABLE_MASK_ERR; * #################################### */ -static void ptm_setup(struct net_device *dev, int ndev) +static void ptm_setup(struct net_device *dev) { + int ndev = 0; dev->netdev_ops = &g_ptm_netdev_ops; netif_napi_add(dev, &g_ptm_priv_data.itf[ndev].napi, ptm_napi_poll, 16); dev->watchdog_timeo = ETH_WATCHDOG_TIMEOUT; @@ -951,10 +952,9 @@ static int ifx_ptm_init(void) } for ( i = 0; i < ARRAY_SIZE(g_net_dev); i++ ) { - g_net_dev[i] = alloc_netdev(0, g_net_dev_name[i], ether_setup); + g_net_dev[i] = alloc_netdev(0, g_net_dev_name[i], ether_setup, ptm_setup); if ( g_net_dev[i] == NULL ) goto ALLOC_NETDEV_FAIL; - ptm_setup(g_net_dev[i], i); } for ( i = 0; i < ARRAY_SIZE(g_net_dev); i++ ) { |