提交 522f17e1 编写于 作者: V Vegard Nossum 提交者: Jacek Anaszewski

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: NVegard Nossum <vegard.nossum@oracle.com>
Cc: Richard Purdie <rpurdie@rpsys.net>
Cc: linux-leds@vger.kernel.org
Signed-off-by: NJacek Anaszewski <j.anaszewski@samsung.com>
上级 9534cc31
...@@ -52,6 +52,7 @@ config LEDS_AAT1290 ...@@ -52,6 +52,7 @@ config LEDS_AAT1290
config LEDS_BCM6328 config LEDS_BCM6328
tristate "LED Support for Broadcom BCM6328" tristate "LED Support for Broadcom BCM6328"
depends on LEDS_CLASS depends on LEDS_CLASS
depends on HAS_IOMEM
depends on OF depends on OF
help help
This option enables support for LEDs connected to the BCM6328 This option enables support for LEDs connected to the BCM6328
...@@ -60,6 +61,7 @@ config LEDS_BCM6328 ...@@ -60,6 +61,7 @@ config LEDS_BCM6328
config LEDS_BCM6358 config LEDS_BCM6358
tristate "LED Support for Broadcom BCM6358" tristate "LED Support for Broadcom BCM6358"
depends on LEDS_CLASS depends on LEDS_CLASS
depends on HAS_IOMEM
depends on OF depends on OF
help help
This option enables support for LEDs connected to the BCM6358 This option enables support for LEDs connected to the BCM6358
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册