0269-ARM-bcm2835-clarify-RASPBERRYPI_FIRMWARE-dependency.patch 1.3 KB

123456789101112131415161718192021222324252627282930313233343536
  1. From 9cfa49abaf59e6f41da47f37caae6075741ca876 Mon Sep 17 00:00:00 2001
  2. From: Arnd Bergmann <arnd@arndb.de>
  3. Date: Thu, 31 Dec 2015 23:39:14 +0100
  4. Subject: [PATCH 269/381] ARM: bcm2835: clarify RASPBERRYPI_FIRMWARE dependency
  5. The firmware driver can be a loadable module, but the power domain
  6. can only be built-in, so we get a build error in an allmodconfig
  7. kernel:
  8. :(.text+0x17e59c): undefined reference to `rpi_firmware_property'
  9. :(.text+0x17e51c): undefined reference to `rpi_firmware_get'
  10. :(.text+0x17e244): undefined reference to `rpi_firmware_property'
  11. This changes the dependency to only allow the power domain code
  12. to be enabled when the firmware driver is built-in. Other users
  13. of the firmware driver may still be loadable modules and not
  14. everyone needs the power domains, so we don't change the firmware
  15. code.
  16. Signed-off-by: Arnd Bergmann <arnd@arndb.de>
  17. (cherry picked from commit 22a5b1ddd83b991b96cb635898e011cce48bf6f8)
  18. ---
  19. drivers/soc/bcm/Kconfig | 2 +-
  20. 1 file changed, 1 insertion(+), 1 deletion(-)
  21. --- a/drivers/soc/bcm/Kconfig
  22. +++ b/drivers/soc/bcm/Kconfig
  23. @@ -1,7 +1,7 @@
  24. config RASPBERRYPI_POWER
  25. bool "Raspberry Pi power domain driver"
  26. depends on ARCH_BCM2835 || COMPILE_TEST
  27. - depends on RASPBERRYPI_FIRMWARE
  28. + depends on RASPBERRYPI_FIRMWARE=y
  29. select PM_GENERIC_DOMAINS if PM
  30. select PM_GENERIC_DOMAINS_OF if PM
  31. help