Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 95706
b: refs/heads/master
c: c1d9615
h: refs/heads/master
v: v3
  • Loading branch information
Sebastian Siewior authored and Linus Torvalds committed May 1, 2008
1 parent 09a6188 commit 11d7caa
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 398ec922b9cd5fdec26d2ca75b9389bed2432557
refs/heads/master: c1d9615680c3f43a305b1f66dff0f933d5079273
10 changes: 8 additions & 2 deletions trunk/drivers/net/fec.c
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,10 @@
#define FEC_MAX_PORTS 1
#endif

#if defined(CONFIG_FADS) || defined(CONFIG_RPXCLASSIC) || defined(CONFIG_M5272)
#define HAVE_mii_link_interrupt
#endif

/*
* Define the fixed address of the FEC hardware.
*/
Expand Down Expand Up @@ -1222,7 +1226,7 @@ static phy_info_t const * const phy_info[] = {
};

/* ------------------------------------------------------------------------- */
#if !defined(CONFIG_M532x)
#ifdef HAVE_mii_link_interrupt
#ifdef CONFIG_RPXCLASSIC
static void
mii_link_interrupt(void *dev_id);
Expand Down Expand Up @@ -2096,6 +2100,7 @@ mii_discover_phy(uint mii_reg, struct net_device *dev)

/* This interrupt occurs when the PHY detects a link change.
*/
#ifdef HAVE_mii_link_interrupt
#ifdef CONFIG_RPXCLASSIC
static void
mii_link_interrupt(void *dev_id)
Expand All @@ -2118,6 +2123,7 @@ mii_link_interrupt(int irq, void * dev_id)

return IRQ_HANDLED;
}
#endif

static int
fec_enet_open(struct net_device *dev)
Expand Down Expand Up @@ -2596,7 +2602,7 @@ fec_stop(struct net_device *dev)
static int __init fec_enet_module_init(void)
{
struct net_device *dev;
int i, j, err;
int i, err;
DECLARE_MAC_BUF(mac);

printk("FEC ENET Version 0.2\n");
Expand Down

0 comments on commit 11d7caa

Please sign in to comment.