ata: pata_ftide010: Remove build dependency on OF
authorDamien Le Moal <damien.lemoal@opensource.wdc.com>
Fri, 14 Oct 2022 02:39:27 +0000 (11:39 +0900)
committerDamien Le Moal <damien.lemoal@opensource.wdc.com>
Mon, 17 Oct 2022 23:05:10 +0000 (08:05 +0900)
commitdc62c7e6ed5351058bbb57495e73fa6b3757587a
tree9c4297eed9332b606b9f404e4e0c92e9adec600c
parent6c4c900b7397365c1c1559fce90a50f1937921ee
ata: pata_ftide010: Remove build dependency on OF

The pata_ftide010 can be built without CONFIG_OF being enabled, as long
as the macro of_match_ptr() is not used when initializing the platform
driver .of_match_table field.

Remove the use of this macro and the build dependency on OF.

Signed-off-by: Damien Le Moal <damien.lemoal@opensource.wdc.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Reviewed-by: Sergey Shtylyov <s.shtylyov@omp.ru>
drivers/ata/Kconfig
drivers/ata/pata_ftide010.c