diff options
author | Luka Perkov <luka@openwrt.org> | 2013-11-11 07:27:53 +0100 |
---|---|---|
committer | Luka Perkov <luka.perkov@sartura.hr> | 2015-01-25 23:56:15 +0100 |
commit | 5aa2297da7f10e4ff231d33f18609396b40aa474 (patch) | |
tree | 329b3e8a7f1a5a5e0c5730c1bf23c7d208088c42 | |
parent | 49413ea3f5b05079c11d284a8520da2bc421442e (diff) |
kirkwood: define empty CONFIG_MVGBE_PORTS by default
Each board with defines it's own set of values. If we do not define
CONFIG_MVGBE_PORTS we will hit following error:
mvgbe.c: In function 'mvgbe_initialize':
mvgbe.c:700:34: error: 'CONFIG_MVGBE_PORTS' undeclared (first use in this function)
u8 used_ports[MAX_MVGBE_DEVS] = CONFIG_MVGBE_PORTS;
This patch fixes above described problem.
Signed-off-by: Luka Perkov <luka@openwrt.org>
Acked-by: Prafulla Wadaskar <prafulla@marvell.com>
-rw-r--r-- | drivers/net/mvgbe.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/mvgbe.c b/drivers/net/mvgbe.c index 6ef6cacb6b8..6b31a82ec40 100644 --- a/drivers/net/mvgbe.c +++ b/drivers/net/mvgbe.c @@ -35,6 +35,10 @@ DECLARE_GLOBAL_DATA_PTR; +#ifndef CONFIG_MVGBE_PORTS +# define CONFIG_MVGBE_PORTS {0, 0} +#endif + #define MV_PHY_ADR_REQUEST 0xee #define MVGBE_SMI_REG (((struct mvgbe_registers *)MVGBE0_BASE)->smi) |