Skip to content

Commit 79a1725

Browse files
krzkwsakernel
authored andcommitted
i2c: synquacer: mark OF related data as maybe unused
The driver can be compile tested with !CONFIG_OF making certain data unused: drivers/i2c/busses/i2c-synquacer.c:632:34: error: ‘synquacer_i2c_dt_ids’ defined but not used [-Werror=unused-const-variable=] Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Reviewed-by: Guenter Roeck <groeck@chromium.org> Signed-off-by: Wolfram Sang <wsa@kernel.org>
1 parent 7d8b59a commit 79a1725

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/i2c/busses/i2c-synquacer.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -629,7 +629,7 @@ static int synquacer_i2c_remove(struct platform_device *pdev)
629629
return 0;
630630
};
631631

632-
static const struct of_device_id synquacer_i2c_dt_ids[] = {
632+
static const struct of_device_id synquacer_i2c_dt_ids[] __maybe_unused = {
633633
{ .compatible = "socionext,synquacer-i2c" },
634634
{ /* sentinel */ }
635635
};

0 commit comments

Comments
 (0)