]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
net: lpc-enet: allow compile testing
authorArnd Bergmann <arnd@arndb.de>
Fri, 9 Aug 2019 14:40:36 +0000 (16:40 +0200)
committerArnd Bergmann <arnd@arndb.de>
Thu, 15 Aug 2019 19:34:00 +0000 (21:34 +0200)
The lpc-enet driver can now be built on all platforms, so
allow compile testing as well.

Add one missing header inclusion that is required in some
configurations.

Link: https://lore.kernel.org/r/20190809144043.476786-11-arnd@arndb.de
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
drivers/net/ethernet/nxp/Kconfig
drivers/net/ethernet/nxp/lpc_eth.c

index 261f107e2be064b8c200a6940fd901686842bf2c..418afb84c84bc3966c53b2aed0c6614a0d088ebd 100644 (file)
@@ -1,7 +1,7 @@
 # SPDX-License-Identifier: GPL-2.0-only
 config LPC_ENET
         tristate "NXP ethernet MAC on LPC devices"
-        depends on ARCH_LPC32XX
+        depends on ARCH_LPC32XX || COMPILE_TEST
         select PHYLIB
         help
          Say Y or M here if you want to use the NXP ethernet MAC included on
index 96d509c418bf5e21cea68ab5521d67b647c82688..141571e2ec11152797a9267c77a5f13e3b7887d3 100644 (file)
@@ -14,6 +14,7 @@
 #include <linux/crc32.h>
 #include <linux/etherdevice.h>
 #include <linux/module.h>
+#include <linux/of.h>
 #include <linux/of_net.h>
 #include <linux/phy.h>
 #include <linux/platform_device.h>