From: Hauke Mehrtens Date: Wed, 1 Jan 2014 18:16:50 +0000 (+0100) Subject: backports: fix number of arguments of phy_connect() X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=15c25fb55c3c4ceb8599f35d7fa70fddd985254f;p=openwrt%2Fstaging%2Fblogic.git backports: fix number of arguments of phy_connect() The flags argument was removed from phy_connect in this commit: commit f9a8f83b04e0c362a2fc660dbad980d24af209fc Author: Florian Fainelli Date: Mon Jan 14 00:52:52 2013 +0000 net: phy: remove flags argument from phy_{attach, connect, connect_direct} Signed-off-by: Hauke Mehrtens --- diff --git a/backport/backport-include/linux/phy.h b/backport/backport-include/linux/phy.h new file mode 100644 index 000000000000..4473e4ed9bbf --- /dev/null +++ b/backport/backport-include/linux/phy.h @@ -0,0 +1,11 @@ +#ifndef __BACKPORT_LINUX_PHY_H +#define __BACKPORT_LINUX_PHY_H +#include_next +#include + +#if (LINUX_VERSION_CODE < KERNEL_VERSION(3,9,0)) +#define phy_connect(dev, bus_id, handler, interface) \ + phy_connect(dev, bus_id, handler, 0, interface) +#endif + +#endif /* __BACKPORT_LINUX_PHY_H */