mfd: twl6030: Mark of_device_id table as maybe unused
authorKrzysztof Kozlowski <krzk@kernel.org>
Fri, 20 Nov 2020 16:21:33 +0000 (17:21 +0100)
committerLee Jones <lee.jones@linaro.org>
Fri, 27 Nov 2020 08:02:52 +0000 (08:02 +0000)
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>
drivers/mfd/twl6030-irq.c

index aff2dfbf3bf9133ce83d5763f0bdcf7ed9663830..97af6c2a6007b70cb357ca7b043a7594ed1122b8 100644 (file)
@@ -356,7 +356,7 @@ static const struct irq_domain_ops twl6030_irq_domain_ops = {
        .xlate  = irq_domain_xlate_onetwocell,
 };
 
-static const struct of_device_id twl6030_of_match[] = {
+static const struct of_device_id twl6030_of_match[] __maybe_unused = {
        {.compatible = "ti,twl6030", &twl6030_interrupt_mapping},
        {.compatible = "ti,twl6032", &twl6032_interrupt_mapping},
        { },