summaryrefslogtreecommitdiffstats
path: root/drivers/ata/pata_ftide010.c
diff options
context:
space:
mode:
authorDamien Le Moal <damien.lemoal@opensource.wdc.com>2022-10-14 11:39:27 +0900
committerDamien Le Moal <damien.lemoal@opensource.wdc.com>2022-10-18 08:05:10 +0900
commitdc62c7e6ed5351058bbb57495e73fa6b3757587a (patch)
tree9c4297eed9332b606b9f404e4e0c92e9adec600c /drivers/ata/pata_ftide010.c
parent6c4c900b7397365c1c1559fce90a50f1937921ee (diff)
downloadlinux-stable-dc62c7e6ed5351058bbb57495e73fa6b3757587a.tar.gz
linux-stable-dc62c7e6ed5351058bbb57495e73fa6b3757587a.tar.bz2
linux-stable-dc62c7e6ed5351058bbb57495e73fa6b3757587a.zip
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>
Diffstat (limited to 'drivers/ata/pata_ftide010.c')
-rw-r--r--drivers/ata/pata_ftide010.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ata/pata_ftide010.c b/drivers/ata/pata_ftide010.c
index 0117df0fe3c5..88924b5daa1a 100644
--- a/drivers/ata/pata_ftide010.c
+++ b/drivers/ata/pata_ftide010.c
@@ -560,7 +560,7 @@ static const struct of_device_id pata_ftide010_of_match[] = {
static struct platform_driver pata_ftide010_driver = {
.driver = {
.name = DRV_NAME,
- .of_match_table = of_match_ptr(pata_ftide010_of_match),
+ .of_match_table = pata_ftide010_of_match,
},
.probe = pata_ftide010_probe,
.remove = pata_ftide010_remove,