ar71xx: fix mv88e6063 compile for 3.14
Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 44459
This commit is contained in:
parent
1e5aa68071
commit
4e5c2b6f46
1 changed files with 2 additions and 1 deletions
|
@ -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)
|
#if LINUX_VERSION_CODE < KERNEL_VERSION(3,15,0)
|
||||||
static char *mv88e6063_probe(struct mii_bus *bus, int sw_addr)
|
static char *mv88e6063_probe(struct mii_bus *bus, int sw_addr)
|
||||||
|
{
|
||||||
#else
|
#else
|
||||||
static char *mv88e6063_probe(struct device *host_dev, int sw_addr)
|
static char *mv88e6063_probe(struct device *host_dev, int sw_addr)
|
||||||
#endif
|
|
||||||
{
|
{
|
||||||
struct mii_bus *bus = dsa_host_dev_to_mii_bus(host_dev);
|
struct mii_bus *bus = dsa_host_dev_to_mii_bus(host_dev);
|
||||||
|
#endif
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
ret = mdiobus_read(bus, REG_PORT(0), 0x03);
|
ret = mdiobus_read(bus, REG_PORT(0), 0x03);
|
||||||
|
|
Loading…
Reference in a new issue