diff options
author | John Crispin <blogic@openwrt.org> | 2015-03-09 14:07:14 +0000 |
---|---|---|
committer | John Crispin <blogic@openwrt.org> | 2015-03-09 14:07:14 +0000 |
commit | 1f58b22fc4831191c799996238fbfa9f46595eb5 (patch) | |
tree | 4e336572331fd277e382bb978c43d7adf0a7bf14 /package/kernel/lantiq | |
parent | 5337b0635f8f28f85d13ddeba5e0621dde7fd777 (diff) | |
download | upstream-1f58b22fc4831191c799996238fbfa9f46595eb5.tar.gz upstream-1f58b22fc4831191c799996238fbfa9f46595eb5.tar.bz2 upstream-1f58b22fc4831191c799996238fbfa9f46595eb5.zip |
lantiq: ltq-ptm-{ar9, ase, xway}: fix alloc_netdev for 3.18
buildbot complained about
ifxmips_ptm_adsl.c:1445:70: error: macro "alloc_netdev" requires 4 arguments, but only 3 given
g_net_dev[i] = alloc_netdev(0, g_net_dev_name[i], ether_setup);
^
fix that similar to the change made to ltq_ptm_vdsl.c
compile tested only.
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44632 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/kernel/lantiq')
-rw-r--r-- | package/kernel/lantiq/ltq-ptm/src/ifxmips_ptm_adsl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/package/kernel/lantiq/ltq-ptm/src/ifxmips_ptm_adsl.c b/package/kernel/lantiq/ltq-ptm/src/ifxmips_ptm_adsl.c index 615affea4f..82ac2ad1c0 100644 --- a/package/kernel/lantiq/ltq-ptm/src/ifxmips_ptm_adsl.c +++ b/package/kernel/lantiq/ltq-ptm/src/ifxmips_ptm_adsl.c @@ -1442,7 +1442,7 @@ static int ifx_ptm_init(void) init_tables(); 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], NET_NAME_UNKNOWN, ether_setup); if ( g_net_dev[i] == NULL ) goto ALLOC_NETDEV_FAIL; ptm_setup(g_net_dev[i], i); |