projects
/
oweals
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
common: Drop linux/delay.h from common header
[oweals/u-boot.git]
/
drivers
/
net
/
bcm-sf2-eth.c
diff --git
a/drivers/net/bcm-sf2-eth.c
b/drivers/net/bcm-sf2-eth.c
index 615037f1a3f3092157f165f1983ef37e3c5a696d..2998d57c72f799705483b294fe53c62b284f7283 100644
(file)
--- a/
drivers/net/bcm-sf2-eth.c
+++ b/
drivers/net/bcm-sf2-eth.c
@@
-4,9
+4,11
@@
*/
#include <common.h>
*/
#include <common.h>
+#include <log.h>
#include <malloc.h>
#include <net.h>
#include <config.h>
#include <malloc.h>
#include <net.h>
#include <config.h>
+#include <linux/delay.h>
#include <phy.h>
#include <miiphy.h>
#include <phy.h>
#include <miiphy.h>
@@
-50,7
+52,7
@@
static int bcm_sf2_eth_init(struct eth_device *dev)
eth->port_num = 0;
debug("Connecting PHY 0...\n");
phydev = phy_connect(miiphy_get_dev_by_name(dev->name),
eth->port_num = 0;
debug("Connecting PHY 0...\n");
phydev = phy_connect(miiphy_get_dev_by_name(dev->name),
-
0
, dev, eth->phy_interface);
+
-1
, dev, eth->phy_interface);
if (phydev != NULL) {
eth->port[0] = phydev;
eth->port_num += 1;
if (phydev != NULL) {
eth->port[0] = phydev;
eth->port_num += 1;