Skip to content

Commit

Permalink
rtc: ds3232: quiet maybe-unused variable warning
Browse files Browse the repository at this point in the history
When CONFIG_OF is disabled then the matching table is not referenced.

Signed-off-by: Alexandre Belloni <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
  • Loading branch information
alexandrebelloni committed Feb 5, 2021
1 parent fb38b5d commit 2c1dc25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/rtc/rtc-ds3232.c
Original file line number Diff line number Diff line change
Expand Up @@ -592,7 +592,7 @@ static const struct i2c_device_id ds3232_id[] = {
};
MODULE_DEVICE_TABLE(i2c, ds3232_id);

static const struct of_device_id ds3232_of_match[] = {
static const __maybe_unused struct of_device_id ds3232_of_match[] = {
{ .compatible = "dallas,ds3232" },
{ }
};
Expand Down

0 comments on commit 2c1dc25

Please sign in to comment.