Skip to content

Commit 9e2480d

Browse files
krzksre
authored andcommitted
power: supply: twl4030_charger: mark OF related data as maybe unused
The driver can be compile tested with !CONFIG_OF making certain data unused: drivers/power/supply/twl4030_charger.c:1129:34: error: ‘twl_bci_of_match’ defined but not used [-Werror=unused-const-variable=] Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
1 parent 66f731d commit 9e2480d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/power/supply/twl4030_charger.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1126,7 +1126,7 @@ static int twl4030_bci_remove(struct platform_device *pdev)
11261126
return 0;
11271127
}
11281128

1129-
static const struct of_device_id twl_bci_of_match[] = {
1129+
static const struct of_device_id twl_bci_of_match[] __maybe_unused = {
11301130
{.compatible = "ti,twl4030-bci", },
11311131
{ }
11321132
};

0 commit comments

Comments
 (0)