提交 643d813a 编写于 作者: V Vladimir Zapolskiy 提交者: David S. Miller

net: ethernet: lpc_eth: remove CONFIG_OF guard from the driver

The MAC controller device is available on NXP LPC32xx platform only,
and the LPC32xx platform supports OF builds only, so additional
checks in the device driver are not needed.
Signed-off-by: NVladimir Zapolskiy <vz@mleia.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 1d948209
...@@ -1517,13 +1517,11 @@ static int lpc_eth_drv_resume(struct platform_device *pdev) ...@@ -1517,13 +1517,11 @@ static int lpc_eth_drv_resume(struct platform_device *pdev)
} }
#endif #endif
#ifdef CONFIG_OF
static const struct of_device_id lpc_eth_match[] = { static const struct of_device_id lpc_eth_match[] = {
{ .compatible = "nxp,lpc-eth" }, { .compatible = "nxp,lpc-eth" },
{ } { }
}; };
MODULE_DEVICE_TABLE(of, lpc_eth_match); MODULE_DEVICE_TABLE(of, lpc_eth_match);
#endif
static struct platform_driver lpc_eth_driver = { static struct platform_driver lpc_eth_driver = {
.probe = lpc_eth_drv_probe, .probe = lpc_eth_drv_probe,
...@@ -1534,7 +1532,7 @@ static struct platform_driver lpc_eth_driver = { ...@@ -1534,7 +1532,7 @@ static struct platform_driver lpc_eth_driver = {
#endif #endif
.driver = { .driver = {
.name = MODNAME, .name = MODNAME,
.of_match_table = of_match_ptr(lpc_eth_match), .of_match_table = lpc_eth_match,
}, },
}; };
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册