Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 122460
b: refs/heads/master
c: 6cbeba5
h: refs/heads/master
v: v3
  • Loading branch information
Wang Chen authored and David S. Miller committed Dec 4, 2008
1 parent 871714d commit fd3ed3b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 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: 28945dd4fba8dcbc1c74ea702b731caaedae6ccb
refs/heads/master: 6cbeba55c5cbd042040d6114471637e8b10d4a6b
16 changes: 8 additions & 8 deletions trunk/arch/xtensa/platforms/iss/network.c
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ static int tuntap_probe(struct iss_net_private *lp, int index, char *init)

static int iss_net_rx(struct net_device *dev)
{
struct iss_net_private *lp = dev->priv;
struct iss_net_private *lp = netdev_priv(dev);
int pkt_len;
struct sk_buff *skb;

Expand Down Expand Up @@ -456,7 +456,7 @@ static void iss_net_timer(unsigned long priv)

static int iss_net_open(struct net_device *dev)
{
struct iss_net_private *lp = dev->priv;
struct iss_net_private *lp = netdev_priv(dev);
char addr[sizeof "255.255.255.255\0"];
int err;

Expand Down Expand Up @@ -496,7 +496,7 @@ static int iss_net_open(struct net_device *dev)

static int iss_net_close(struct net_device *dev)
{
struct iss_net_private *lp = dev->priv;
struct iss_net_private *lp = netdev_priv(dev);
printk("iss_net_close!\n");
netif_stop_queue(dev);
spin_lock(&lp->lock);
Expand All @@ -515,7 +515,7 @@ printk("iss_net_close!\n");

static int iss_net_start_xmit(struct sk_buff *skb, struct net_device *dev)
{
struct iss_net_private *lp = dev->priv;
struct iss_net_private *lp = netdev_priv(dev);
unsigned long flags;
int len;

Expand Down Expand Up @@ -551,7 +551,7 @@ static int iss_net_start_xmit(struct sk_buff *skb, struct net_device *dev)

static struct net_device_stats *iss_net_get_stats(struct net_device *dev)
{
struct iss_net_private *lp = dev->priv;
struct iss_net_private *lp = netdev_priv(dev);
return &lp->stats;
}

Expand All @@ -578,7 +578,7 @@ static void iss_net_tx_timeout(struct net_device *dev)
static int iss_net_set_mac(struct net_device *dev, void *addr)
{
#if 0
struct iss_net_private *lp = dev->priv;
struct iss_net_private *lp = netdev_priv(dev);
struct sockaddr *hwaddr = addr;

spin_lock(&lp->lock);
Expand All @@ -592,7 +592,7 @@ static int iss_net_set_mac(struct net_device *dev, void *addr)
static int iss_net_change_mtu(struct net_device *dev, int new_mtu)
{
#if 0
struct iss_net_private *lp = dev->priv;
struct iss_net_private *lp = netdev_priv(dev);
int err = 0;

spin_lock(&lp->lock);
Expand Down Expand Up @@ -636,7 +636,7 @@ static int iss_net_configure(int index, char *init)

/* Initialize private element. */

lp = dev->priv;
lp = netdev_priv(dev);
*lp = ((struct iss_net_private) {
.device_list = LIST_HEAD_INIT(lp->device_list),
.opened_list = LIST_HEAD_INIT(lp->opened_list),
Expand Down

0 comments on commit fd3ed3b

Please sign in to comment.