brcm2708: update linux 4.4 patches to latest version
[openwrt/staging/lynxis/omap.git] / target / linux / brcm2708 / patches-4.4 / 0270-ARM-bcm2835-clarify-RASPBERRYPI_FIRMWARE-dependency.patch
1 From ac82db5c0d1e26b32d285100e423a89b35e188da 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 270/304] ARM: bcm2835: clarify RASPBERRYPI_FIRMWARE dependency
5
6 The firmware driver can be a loadable module, but the power domain
7 can only be built-in, so we get a build error in an allmodconfig
8 kernel:
9
10 :(.text+0x17e59c): undefined reference to `rpi_firmware_property'
11 :(.text+0x17e51c): undefined reference to `rpi_firmware_get'
12 :(.text+0x17e244): undefined reference to `rpi_firmware_property'
13
14 This changes the dependency to only allow the power domain code
15 to be enabled when the firmware driver is built-in. Other users
16 of the firmware driver may still be loadable modules and not
17 everyone needs the power domains, so we don't change the firmware
18 code.
19
20 Signed-off-by: Arnd Bergmann <arnd@arndb.de>
21 (cherry picked from commit 22a5b1ddd83b991b96cb635898e011cce48bf6f8)
22 ---
23 drivers/soc/bcm/Kconfig | 2 +-
24 1 file changed, 1 insertion(+), 1 deletion(-)
25
26 --- a/drivers/soc/bcm/Kconfig
27 +++ b/drivers/soc/bcm/Kconfig
28 @@ -1,7 +1,7 @@
29 config RASPBERRYPI_POWER
30 bool "Raspberry Pi power domain driver"
31 depends on ARCH_BCM2835 || COMPILE_TEST
32 - depends on RASPBERRYPI_FIRMWARE
33 + depends on RASPBERRYPI_FIRMWARE=y
34 select PM_GENERIC_DOMAINS if PM
35 select PM_GENERIC_DOMAINS_OF if PM
36 help