502-MIPS-ath79-export-ath79_gpio_base.patch 643 B

1234567891011121314151617181920212223
  1. --- a/arch/mips/ath79/gpio.c
  2. +++ b/arch/mips/ath79/gpio.c
  3. @@ -25,7 +25,9 @@
  4. #include <asm/mach-ath79/ath79.h>
  5. #include "common.h"
  6. -static void __iomem *ath79_gpio_base;
  7. +void __iomem *ath79_gpio_base;
  8. +EXPORT_SYMBOL_GPL(ath79_gpio_base);
  9. +
  10. static unsigned long ath79_gpio_count;
  11. static DEFINE_SPINLOCK(ath79_gpio_lock);
  12. --- a/arch/mips/include/asm/mach-ath79/ath79.h
  13. +++ b/arch/mips/include/asm/mach-ath79/ath79.h
  14. @@ -116,6 +116,7 @@ static inline int soc_is_qca955x(void)
  15. }
  16. extern void __iomem *ath79_ddr_base;
  17. +extern void __iomem *ath79_gpio_base;
  18. extern void __iomem *ath79_pll_base;
  19. extern void __iomem *ath79_reset_base;