Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 135389
b: refs/heads/master
c: 30a5d7f
h: refs/heads/master
i:
  135387: 16b4e21
v: v3
  • Loading branch information
Stephen Hemminger authored and David S. Miller committed Mar 22, 2009
1 parent a0ee3b1 commit 5b53c62
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 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: 2d44a22254c1c4ad35a58e6d9d15a547d8841efc
refs/heads/master: 30a5d7f7e3c77e3b00b8c981b7af4e5adc331353
14 changes: 9 additions & 5 deletions trunk/drivers/net/irda/vlsi_ir.c
Original file line number Diff line number Diff line change
Expand Up @@ -1573,6 +1573,14 @@ static int vlsi_close(struct net_device *ndev)
return 0;
}

static const struct net_device_ops vlsi_netdev_ops = {
.ndo_open = vlsi_open,
.ndo_stop = vlsi_close,
.ndo_start_xmit = vlsi_hard_start_xmit,
.ndo_do_ioctl = vlsi_ioctl,
.ndo_tx_timeout = vlsi_tx_timeout,
};

static int vlsi_irda_init(struct net_device *ndev)
{
vlsi_irda_dev_t *idev = netdev_priv(ndev);
Expand Down Expand Up @@ -1608,11 +1616,7 @@ static int vlsi_irda_init(struct net_device *ndev)
ndev->flags |= IFF_PORTSEL | IFF_AUTOMEDIA;
ndev->if_port = IF_PORT_UNKNOWN;

ndev->open = vlsi_open;
ndev->stop = vlsi_close;
ndev->hard_start_xmit = vlsi_hard_start_xmit;
ndev->do_ioctl = vlsi_ioctl;
ndev->tx_timeout = vlsi_tx_timeout;
ndev->netdev_ops = &vlsi_netdev_ops;
ndev->watchdog_timeo = 500*HZ/1000; /* max. allowed turn time for IrLAP */

SET_NETDEV_DEV(ndev, &pdev->dev);
Expand Down

0 comments on commit 5b53c62

Please sign in to comment.