Re: [PATCH 15/16] mfd: axp20x: skip of_device_id table when !CONFIG_OF

From: Chen-Yu Tsai
Date: Fri Nov 20 2020 - 11:41:36 EST


On Sat, Nov 21, 2020 at 12:22 AM Krzysztof Kozlowski <krzk@xxxxxxxxxx> wrote:
>
> The driver can match either via ACPI or OF. Its of_device_id table is
> referenced via of_match_ptr() so it will be unused for !CONFIG_OF
> builds:
>
> drivers/mfd/axp20x-i2c.c:60:34: warning: ‘axp20x_i2c_of_match’ defined but not used [-Wunused-const-variable=]
>
> Signed-off-by: Krzysztof Kozlowski <krzk@xxxxxxxxxx>

Acked-by: Chen-Yu Tsai <wens@xxxxxxxx>