提交 dc62c7e6 编写于 作者: D Damien Le Moal

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: NDamien Le Moal <damien.lemoal@opensource.wdc.com>
Reviewed-by: NLinus Walleij <linus.walleij@linaro.org>
Reviewed-by: NSergey Shtylyov <s.shtylyov@omp.ru>
上级 6c4c900b
...@@ -696,7 +696,6 @@ config PATA_EP93XX ...@@ -696,7 +696,6 @@ config PATA_EP93XX
config PATA_FTIDE010 config PATA_FTIDE010
tristate "Faraday Technology FTIDE010 PATA support" tristate "Faraday Technology FTIDE010 PATA support"
depends on OF
depends on ARM || COMPILE_TEST depends on ARM || COMPILE_TEST
depends on SATA_GEMINI depends on SATA_GEMINI
help help
......
...@@ -560,7 +560,7 @@ static const struct of_device_id pata_ftide010_of_match[] = { ...@@ -560,7 +560,7 @@ static const struct of_device_id pata_ftide010_of_match[] = {
static struct platform_driver pata_ftide010_driver = { static struct platform_driver pata_ftide010_driver = {
.driver = { .driver = {
.name = DRV_NAME, .name = DRV_NAME,
.of_match_table = of_match_ptr(pata_ftide010_of_match), .of_match_table = pata_ftide010_of_match,
}, },
.probe = pata_ftide010_probe, .probe = pata_ftide010_probe,
.remove = pata_ftide010_remove, .remove = pata_ftide010_remove,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册