Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mfd: twl6030: Mark of_device_id table as maybe unused

The driver references of_device_id table via of_match_device() so it
will be unused for !CONFIG_OF builds:

drivers/mfd/twl6030-irq.c:359:34: warning: ‘twl6030_of_match’ defined but not used [-Wunused-const-variable=]

Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
Signed-off-by: Lee Jones <lee.jones@linaro.org>

authored by

Krzysztof Kozlowski and committed by
Lee Jones
e73fd3f2 06b324fc

+1 -1
+1 -1
drivers/mfd/twl6030-irq.c
··· 356 356 .xlate = irq_domain_xlate_onetwocell, 357 357 }; 358 358 359 - static const struct of_device_id twl6030_of_match[] = { 359 + static const struct of_device_id twl6030_of_match[] __maybe_unused = { 360 360 {.compatible = "ti,twl6030", &twl6030_interrupt_mapping}, 361 361 {.compatible = "ti,twl6032", &twl6032_interrupt_mapping}, 362 362 { },