Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 5698
b: refs/heads/master
c: 8b0ed2f
h: refs/heads/master
v: v3
  • Loading branch information
Aristeu Sergio Rozanski Filho authored and Linus Torvalds committed Aug 7, 2005
1 parent cd7b18f commit 73da9b8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 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: 68b47139ea94ab6d05e89c654db8daa99e9a232c
refs/heads/master: 8b0ed2fbdbea3f0d34404f1cbfdf02c4a673ca56
18 changes: 9 additions & 9 deletions trunk/arch/ppc/8xx_io/fec.c
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ struct fec_enet_private {
uint phy_status;
uint phy_speed;
phy_info_t *phy;
struct tq_struct phy_task;
struct work_struct phy_task;

uint sequence_done;

Expand Down Expand Up @@ -1263,8 +1263,9 @@ static void mii_display_status(struct net_device *dev)
printk(".\n");
}

static void mii_display_config(struct net_device *dev)
static void mii_display_config(void *priv)
{
struct net_device *dev = (struct net_device *)priv;
struct fec_enet_private *fep = dev->priv;
volatile uint *s = &(fep->phy_status);

Expand Down Expand Up @@ -1294,8 +1295,9 @@ static void mii_display_config(struct net_device *dev)
fep->sequence_done = 1;
}

static void mii_relink(struct net_device *dev)
static void mii_relink(void *priv)
{
struct net_device *dev = (struct net_device *)priv;
struct fec_enet_private *fep = dev->priv;
int duplex;

Expand Down Expand Up @@ -1323,18 +1325,16 @@ static void mii_queue_relink(uint mii_reg, struct net_device *dev)
{
struct fec_enet_private *fep = dev->priv;

fep->phy_task.routine = (void *)mii_relink;
fep->phy_task.data = dev;
schedule_task(&fep->phy_task);
INIT_WORK(&fep->phy_task, mii_relink, (void *)dev);
schedule_work(&fep->phy_task);
}

static void mii_queue_config(uint mii_reg, struct net_device *dev)
{
struct fec_enet_private *fep = dev->priv;

fep->phy_task.routine = (void *)mii_display_config;
fep->phy_task.data = dev;
schedule_task(&fep->phy_task);
INIT_WORK(&fep->phy_task, mii_display_config, (void *)dev);
schedule_work(&fep->phy_task);
}


Expand Down

0 comments on commit 73da9b8

Please sign in to comment.