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

mfd: atmel-smc: Mark OF related data as maybe unused

The driver can be compile tested with !CONFIG_OF making certain data
unused:

drivers/mfd/atmel-smc.c:326:34: error: ‘atmel_smc_ids’ defined but not used [-Werror=unused-const-variable=]

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Lee Jones <lee@kernel.org>
Link: https://lore.kernel.org/r/20230311111629.251830-1-krzysztof.kozlowski@linaro.org

authored by

Krzysztof Kozlowski and committed by
Lee Jones
f130faeb 01330edc

+1 -1
+1 -1
drivers/mfd/atmel-smc.c
··· 323 323 .timing_regs_offset = 0x700, 324 324 }; 325 325 326 - static const struct of_device_id atmel_smc_ids[] = { 326 + static const struct of_device_id atmel_smc_ids[] __maybe_unused = { 327 327 { .compatible = "atmel,at91sam9260-smc", .data = NULL }, 328 328 { .compatible = "atmel,sama5d3-smc", .data = &sama5d3_reg_layout }, 329 329 { .compatible = "atmel,sama5d2-smc", .data = &sama5d2_reg_layout },