|
@@ -99,7 +99,7 @@ static int pcnet_open(struct net_device *dev);
|
|
static int pcnet_close(struct net_device *dev);
|
|
static int pcnet_close(struct net_device *dev);
|
|
static int ei_ioctl(struct net_device *dev, struct ifreq *rq, int cmd);
|
|
static int ei_ioctl(struct net_device *dev, struct ifreq *rq, int cmd);
|
|
static irqreturn_t ei_irq_wrapper(int irq, void *dev_id);
|
|
static irqreturn_t ei_irq_wrapper(int irq, void *dev_id);
|
|
-static void ei_watchdog(u_long arg);
|
|
|
|
|
|
+static void ei_watchdog(struct timer_list *t);
|
|
static void pcnet_reset_8390(struct net_device *dev);
|
|
static void pcnet_reset_8390(struct net_device *dev);
|
|
static int set_config(struct net_device *dev, struct ifmap *map);
|
|
static int set_config(struct net_device *dev, struct ifmap *map);
|
|
static int setup_shmem_window(struct pcmcia_device *link, int start_pg,
|
|
static int setup_shmem_window(struct pcmcia_device *link, int start_pg,
|
|
@@ -917,7 +917,7 @@ static int pcnet_open(struct net_device *dev)
|
|
|
|
|
|
info->phy_id = info->eth_phy;
|
|
info->phy_id = info->eth_phy;
|
|
info->link_status = 0x00;
|
|
info->link_status = 0x00;
|
|
- setup_timer(&info->watchdog, ei_watchdog, (u_long)dev);
|
|
|
|
|
|
+ timer_setup(&info->watchdog, ei_watchdog, 0);
|
|
mod_timer(&info->watchdog, jiffies + HZ);
|
|
mod_timer(&info->watchdog, jiffies + HZ);
|
|
|
|
|
|
return ei_open(dev);
|
|
return ei_open(dev);
|
|
@@ -1006,10 +1006,10 @@ static irqreturn_t ei_irq_wrapper(int irq, void *dev_id)
|
|
return ret;
|
|
return ret;
|
|
}
|
|
}
|
|
|
|
|
|
-static void ei_watchdog(u_long arg)
|
|
|
|
|
|
+static void ei_watchdog(struct timer_list *t)
|
|
{
|
|
{
|
|
- struct net_device *dev = (struct net_device *)arg;
|
|
|
|
- struct pcnet_dev *info = PRIV(dev);
|
|
|
|
|
|
+ struct pcnet_dev *info = from_timer(info, t, watchdog);
|
|
|
|
+ struct net_device *dev = info->p_dev->priv;
|
|
unsigned int nic_base = dev->base_addr;
|
|
unsigned int nic_base = dev->base_addr;
|
|
unsigned int mii_addr = nic_base + DLINK_GPIO;
|
|
unsigned int mii_addr = nic_base + DLINK_GPIO;
|
|
u_short link;
|
|
u_short link;
|