Skip to content

Commit

Permalink
net: ethernet: lpc_eth: remove CONFIG_OF guard from the driver
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Vladimir Zapolskiy authored and David S. Miller committed Oct 20, 2018
1 parent 1d94820 commit 643d813
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions drivers/net/ethernet/nxp/lpc_eth.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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,
},
};

Expand Down

0 comments on commit 643d813

Please sign in to comment.