Skip to content
Commit 6c4c900b authored by Damien Le Moal's avatar Damien Le Moal
Browse files

ata: sata_gemini: Remove dependency on OF for compile tests



If CONFIG_OF is disabled, then using the macro of_match_ptr() results
in the gemini_sata_of_match variable being unused, which generates a
compilation warning and a compilation error if CONFIG_WERROR is enabled.

Removing the use of this macro by directly assigning the
gemini_sata_of_match match table to the .of_match_table field in the
platform driver definition allows removing the dependency on OF for
compile tests, thus improving compile test coverage.

Fixes: f7220eac ("ata: Kconfig: fix sata gemini compile test condition")
Signed-off-by: default avatarDamien Le Moal <damien.lemoal@opensource.wdc.com>
Reviewed-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent 1dea5edc
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment