Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 122119
b: refs/heads/master
c: 4b40eed
h: refs/heads/master
i:
  122117: 3a3213b
  122115: 27fc528
  122111: 5ca8caf
v: v3
  • Loading branch information
Wang Chen authored and David S. Miller committed Nov 24, 2008
1 parent 64d5bdb commit 923ac48
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 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: 486bf8de17361232c40e092a219f328093e34dca
refs/heads/master: 4b40eed73e3787d60160beed1352ceadd24f6be1
8 changes: 4 additions & 4 deletions trunk/drivers/infiniband/hw/amso1100/c2_provider.c
Original file line number Diff line number Diff line change
Expand Up @@ -653,7 +653,7 @@ static int c2_service_destroy(struct iw_cm_id *cm_id)
static int c2_pseudo_up(struct net_device *netdev)
{
struct in_device *ind;
struct c2_dev *c2dev = netdev->priv;
struct c2_dev *c2dev = netdev->ml_priv;

ind = in_dev_get(netdev);
if (!ind)
Expand All @@ -678,7 +678,7 @@ static int c2_pseudo_up(struct net_device *netdev)
static int c2_pseudo_down(struct net_device *netdev)
{
struct in_device *ind;
struct c2_dev *c2dev = netdev->priv;
struct c2_dev *c2dev = netdev->ml_priv;

ind = in_dev_get(netdev);
if (!ind)
Expand Down Expand Up @@ -746,14 +746,14 @@ static struct net_device *c2_pseudo_netdev_init(struct c2_dev *c2dev)
/* change ethxxx to iwxxx */
strcpy(name, "iw");
strcat(name, &c2dev->netdev->name[3]);
netdev = alloc_netdev(sizeof(*netdev), name, setup);
netdev = alloc_netdev(0, name, setup);
if (!netdev) {
printk(KERN_ERR PFX "%s - etherdev alloc failed",
__func__);
return NULL;
}

netdev->priv = c2dev;
netdev->ml_priv = c2dev;

SET_NETDEV_DEV(netdev, &c2dev->pcidev->dev);

Expand Down

0 comments on commit 923ac48

Please sign in to comment.