summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/nxp/lpc_eth.c
diff options
context:
space:
mode:
authorVladimir Zapolskiy <vz@mleia.com>2018-10-19 01:58:41 +0300
committerDavid S. Miller <davem@davemloft.net>2018-10-19 17:04:38 -0700
commit643d813a0efd7e6fd78b49f69643af66731e05c8 (patch)
treeb3e27a9598bdd703f7b90afb97a1ff450dc1f1af /drivers/net/ethernet/nxp/lpc_eth.c
parent1d9482092d248272d8279450717b426b2a4fea0f (diff)
downloadlwn-643d813a0efd7e6fd78b49f69643af66731e05c8.tar.gz
lwn-643d813a0efd7e6fd78b49f69643af66731e05c8.zip
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: Vladimir Zapolskiy <vz@mleia.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/nxp/lpc_eth.c')
-rw-r--r--drivers/net/ethernet/nxp/lpc_eth.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/net/ethernet/nxp/lpc_eth.c b/drivers/net/ethernet/nxp/lpc_eth.c
index 5eb2aacf60d9..7128cd05f79c 100644
--- a/drivers/net/ethernet/nxp/lpc_eth.c
+++ b/drivers/net/ethernet/nxp/lpc_eth.c
@@ -1517,13 +1517,11 @@ static int lpc_eth_drv_resume(struct platform_device *pdev)
}
#endif
-#ifdef CONFIG_OF
static const struct of_device_id lpc_eth_match[] = {
{ .compatible = "nxp,lpc-eth" },
{ }
};
MODULE_DEVICE_TABLE(of, lpc_eth_match);
-#endif
static struct platform_driver lpc_eth_driver = {
.probe = lpc_eth_drv_probe,
@@ -1534,7 +1532,7 @@ static struct platform_driver lpc_eth_driver = {
#endif
.driver = {
.name = MODNAME,
- .of_match_table = of_match_ptr(lpc_eth_match),
+ .of_match_table = lpc_eth_match,
},
};