aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ar71xx/files/drivers/net
diff options
context:
space:
mode:
authorJohn Crispin <blogic@openwrt.org>2015-02-15 21:15:42 +0000
committerJohn Crispin <blogic@openwrt.org>2015-02-15 21:15:42 +0000
commit2f485e8c6aba0c623727f6128be119a60a3c4066 (patch)
treed95cbcdfb65fff0ce7304fdcd84b04ea3560dd48 /target/linux/ar71xx/files/drivers/net
parent454c7914ba541b2343cc8c1d9774445a428f9714 (diff)
downloadmaster-187ad058-2f485e8c6aba0c623727f6128be119a60a3c4066.tar.gz
master-187ad058-2f485e8c6aba0c623727f6128be119a60a3c4066.tar.bz2
master-187ad058-2f485e8c6aba0c623727f6128be119a60a3c4066.zip
ar71xx: fix mv88e6063 compile for 3.14
Signed-off-by: John Crispin <blogic@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44459 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ar71xx/files/drivers/net')
-rw-r--r--target/linux/ar71xx/files/drivers/net/dsa/mv88e6063.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/target/linux/ar71xx/files/drivers/net/dsa/mv88e6063.c b/target/linux/ar71xx/files/drivers/net/dsa/mv88e6063.c
index 224b4913c6..b9e9af35b8 100644
--- a/target/linux/ar71xx/files/drivers/net/dsa/mv88e6063.c
+++ b/target/linux/ar71xx/files/drivers/net/dsa/mv88e6063.c
@@ -66,11 +66,12 @@ static int reg_write(struct dsa_switch *ds, int addr, int reg, u16 val)
#if LINUX_VERSION_CODE < KERNEL_VERSION(3,15,0)
static char *mv88e6063_probe(struct mii_bus *bus, int sw_addr)
+{
#else
static char *mv88e6063_probe(struct device *host_dev, int sw_addr)
-#endif
{
struct mii_bus *bus = dsa_host_dev_to_mii_bus(host_dev);
+#endif
int ret;
ret = mdiobus_read(bus, REG_PORT(0), 0x03);