0002-kirkwood-define-empty-CONFIG_MVGBE_PORTS-by-default.patch 955 B

1234567891011121314151617181920212223242526272829303132
  1. From 292d4cf9257921912e8ea352687c977208e7553d Mon Sep 17 00:00:00 2001
  2. From: Luka Perkov <luka@openwrt.org>
  3. Date: Mon, 11 Nov 2013 07:27:53 +0100
  4. Subject: [PATCH 2/9] kirkwood: define empty CONFIG_MVGBE_PORTS by default
  5. Each board with defines it's own set of values. If we do not define
  6. CONFIG_MVGBE_PORTS we will hit following error:
  7. mvgbe.c: In function 'mvgbe_initialize':
  8. mvgbe.c:700:34: error: 'CONFIG_MVGBE_PORTS' undeclared (first use in this function)
  9. u8 used_ports[MAX_MVGBE_DEVS] = CONFIG_MVGBE_PORTS;
  10. This patch fixes above described problem.
  11. Signed-off-by: Luka Perkov <luka@openwrt.org>
  12. ---
  13. drivers/net/mvgbe.c | 4 ++++
  14. 1 file changed, 4 insertions(+)
  15. --- a/drivers/net/mvgbe.c
  16. +++ b/drivers/net/mvgbe.c
  17. @@ -35,6 +35,10 @@
  18. DECLARE_GLOBAL_DATA_PTR;
  19. +#ifndef CONFIG_MVGBE_PORTS
  20. +# define CONFIG_MVGBE_PORTS {0, 0}
  21. +#endif
  22. +
  23. #define MV_PHY_ADR_REQUEST 0xee
  24. #define MVGBE_SMI_REG (((struct mvgbe_registers *)MVGBE0_BASE)->smi)