summaryrefslogtreecommitdiff
path: root/src/drivers/net
diff options
context:
space:
mode:
authorElyes HAOUAS <ehaouas@noos.fr>2018-06-10 23:36:44 +0200
committerPatrick Georgi <pgeorgi@google.com>2018-06-14 09:29:31 +0000
commitc8a649c08f92d4d2255626da4e1cd7a6d71469e7 (patch)
tree14a899738d09b37030585aca3b59344595208e36 /src/drivers/net
parent846b4941fee842bc359fa2b611cf0c3fc4f158b2 (diff)
src: Use of device_t is deprecated
Change-Id: I9cebfc5c77187bd81094031c43ff6df094908417 Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/27010 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Patrick Georgi <pgeorgi@google.com>
Diffstat (limited to 'src/drivers/net')
-rw-r--r--src/drivers/net/ne2k.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/drivers/net/ne2k.c b/src/drivers/net/ne2k.c
index 96f4d703a4..75f3357c1c 100644
--- a/src/drivers/net/ne2k.c
+++ b/src/drivers/net/ne2k.c
@@ -273,7 +273,11 @@ static void ns8390_reset(unsigned int eth_nic_base)
int ne2k_init(unsigned int eth_nic_base) {
- device_t dev;
+#ifdef __SIMPLE_DEVICE__
+ pci_devfn_t dev;
+#else
+ struct device *dev;
+#endif
unsigned char c;
/* Power management controller */