summaryrefslogtreecommitdiff
path: root/drivers/leds
diff options
context:
space:
mode:
authorVegard Nossum <vegard.nossum@oracle.com>2016-01-02 14:05:49 +0100
committerJacek Anaszewski <j.anaszewski@samsung.com>2016-01-04 09:57:41 +0100
commit522f17e1214cf112e62cff56150964d8b68b94b2 (patch)
treea2180fcaf1d7248c85c6c2cd3fcc7434c6e51272 /drivers/leds
parent9534cc31dda2bb129480ce2db92bf7bc1ef470ed (diff)
downloadlinux-rpi-522f17e1214cf112e62cff56150964d8b68b94b2.tar.gz
linux-rpi-522f17e1214cf112e62cff56150964d8b68b94b2.tar.bz2
linux-rpi-522f17e1214cf112e62cff56150964d8b68b94b2.zip
leds: add HAS_IOMEM dependency to LEDS_BCM6328/LEDS_BCM6358
Ran into this on UML: drivers/built-in.o: In function `bcm6328_leds_probe': drivers/leds/leds-bcm6328.c:340: undefined reference to `devm_ioremap_resource' drivers/built-in.o: In function `bcm6358_leds_probe': drivers/leds/leds-bcm6358.c:173: undefined reference to `devm_ioremap_resource' collect2: error: ld returned 1 exit status devm_ioremap_resource() is defined only when HAS_IOMEM is selected. Signed-off-by: Vegard Nossum <vegard.nossum@oracle.com> Cc: Richard Purdie <rpurdie@rpsys.net> Cc: linux-leds@vger.kernel.org Signed-off-by: Jacek Anaszewski <j.anaszewski@samsung.com>
Diffstat (limited to 'drivers/leds')
-rw-r--r--drivers/leds/Kconfig2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/leds/Kconfig b/drivers/leds/Kconfig
index b1ab8bdf8251..7f940c24a16b 100644
--- a/drivers/leds/Kconfig
+++ b/drivers/leds/Kconfig
@@ -52,6 +52,7 @@ config LEDS_AAT1290
config LEDS_BCM6328
tristate "LED Support for Broadcom BCM6328"
depends on LEDS_CLASS
+ depends on HAS_IOMEM
depends on OF
help
This option enables support for LEDs connected to the BCM6328
@@ -60,6 +61,7 @@ config LEDS_BCM6328
config LEDS_BCM6358
tristate "LED Support for Broadcom BCM6358"
depends on LEDS_CLASS
+ depends on HAS_IOMEM
depends on OF
help
This option enables support for LEDs connected to the BCM6358