]> git.sur5r.net Git - u-boot/commitdiff
kirkwood: define empty CONFIG_MVGBE_PORTS by default
authorLuka Perkov <luka@openwrt.org>
Mon, 11 Nov 2013 06:27:53 +0000 (07:27 +0100)
committerLuka Perkov <luka.perkov@sartura.hr>
Sun, 25 Jan 2015 22:56:15 +0000 (23:56 +0100)
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>
drivers/net/mvgbe.c

index 6ef6cacb6b87940421bae8d78085eb0ebb5a6e0d..6b31a82ec40204ba60791308878900a903b9179e 100644 (file)
 
 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)