Commit 106b4cb5 authored by Hui Tang's avatar Hui Tang Committed by David S. Miller

net: amd: remove leading spaces before tabs

There are a few leading spaces before tabs and remove it by running the
following commard:

	$ find . -name '*.c' | xargs sed -r -i 's/^[ ]+\t/\t/'
	$ find . -name '*.h' | xargs sed -r -i 's/^[ ]+\t/\t/'
Signed-off-by: default avatarHui Tang <tanghui20@huawei.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 40b1f926
...@@ -19,14 +19,14 @@ Module Name: ...@@ -19,14 +19,14 @@ Module Name:
Abstract: Abstract:
AMD8111 based 10/100 Ethernet Controller Driver. AMD8111 based 10/100 Ethernet Controller Driver.
Environment: Environment:
Kernel Mode Kernel Mode
Revision History: Revision History:
3.0.0 3.0.0
Initial Revision. Initial Revision.
3.0.1 3.0.1
1. Dynamic interrupt coalescing. 1. Dynamic interrupt coalescing.
......
...@@ -10,14 +10,14 @@ Module Name: ...@@ -10,14 +10,14 @@ Module Name:
Abstract: Abstract:
AMD8111 based 10/100 Ethernet Controller driver definitions. AMD8111 based 10/100 Ethernet Controller driver definitions.
Environment: Environment:
Kernel Mode Kernel Mode
Revision History: Revision History:
3.0.0 3.0.0
Initial Revision. Initial Revision.
3.0.1 3.0.1
*/ */
...@@ -692,7 +692,7 @@ enum coal_type{ ...@@ -692,7 +692,7 @@ enum coal_type{
}; };
enum coal_mode{ enum coal_mode{
RX_INTR_COAL, RX_INTR_COAL,
TX_INTR_COAL, TX_INTR_COAL,
DISABLE_COAL, DISABLE_COAL,
ENABLE_COAL, ENABLE_COAL,
......
...@@ -706,7 +706,7 @@ static void lance_init_ring( struct net_device *dev ) ...@@ -706,7 +706,7 @@ static void lance_init_ring( struct net_device *dev )
CHECK_OFFSET(offset); CHECK_OFFSET(offset);
MEM->tx_head[i].base = offset; MEM->tx_head[i].base = offset;
MEM->tx_head[i].flag = TMD1_OWN_HOST; MEM->tx_head[i].flag = TMD1_OWN_HOST;
MEM->tx_head[i].base_hi = 0; MEM->tx_head[i].base_hi = 0;
MEM->tx_head[i].length = 0; MEM->tx_head[i].length = 0;
MEM->tx_head[i].misc = 0; MEM->tx_head[i].misc = 0;
offset += PKT_BUF_SZ; offset += PKT_BUF_SZ;
......
...@@ -937,7 +937,7 @@ static netdev_tx_t lance_start_xmit(struct sk_buff *skb, struct net_device *dev) ...@@ -937,7 +937,7 @@ static netdev_tx_t lance_start_xmit(struct sk_buff *skb, struct net_device *dev)
dev_kfree_skb(skb); dev_kfree_skb(skb);
return NETDEV_TX_OK; return NETDEV_TX_OK;
} }
static void lance_load_multicast(struct net_device *dev) static void lance_load_multicast(struct net_device *dev)
......
...@@ -780,7 +780,7 @@ lance_open(struct net_device *dev) ...@@ -780,7 +780,7 @@ lance_open(struct net_device *dev)
outw(0x0002, ioaddr+LANCE_ADDR); outw(0x0002, ioaddr+LANCE_ADDR);
/* Only touch autoselect bit. */ /* Only touch autoselect bit. */
outw(inw(ioaddr+LANCE_BUS_IF) | 0x0002, ioaddr+LANCE_BUS_IF); outw(inw(ioaddr+LANCE_BUS_IF) | 0x0002, ioaddr+LANCE_BUS_IF);
} }
if (lance_debug > 1) if (lance_debug > 1)
printk("%s: lance_open() irq %d dma %d tx/rx rings %#x/%#x init %#x.\n", printk("%s: lance_open() irq %d dma %d tx/rx rings %#x/%#x init %#x.\n",
...@@ -812,7 +812,7 @@ lance_open(struct net_device *dev) ...@@ -812,7 +812,7 @@ lance_open(struct net_device *dev)
* We used to clear the InitDone bit, 0x0100, here but Mark Stockton * We used to clear the InitDone bit, 0x0100, here but Mark Stockton
* reports that doing so triggers a bug in the '974. * reports that doing so triggers a bug in the '974.
*/ */
outw(0x0042, ioaddr+LANCE_DATA); outw(0x0042, ioaddr+LANCE_DATA);
if (lance_debug > 2) if (lance_debug > 2)
printk("%s: LANCE open after %d ticks, init block %#x csr0 %4.4x.\n", printk("%s: LANCE open after %d ticks, init block %#x csr0 %4.4x.\n",
......
...@@ -193,7 +193,7 @@ static struct card { ...@@ -193,7 +193,7 @@ static struct card {
.vendor_id = ni_vendor, .vendor_id = ni_vendor,
.cardname = "ni6510", .cardname = "ni6510",
.config = 0x1, .config = 0x1,
}, },
{ {
.id0 = NI65_EB_ID0, .id0 = NI65_EB_ID0,
.id1 = NI65_EB_ID1, .id1 = NI65_EB_ID1,
...@@ -204,7 +204,7 @@ static struct card { ...@@ -204,7 +204,7 @@ static struct card {
.vendor_id = ni_vendor, .vendor_id = ni_vendor,
.cardname = "ni6510 EtherBlaster", .cardname = "ni6510 EtherBlaster",
.config = 0x2, .config = 0x2,
}, },
{ {
.id0 = NE2100_ID0, .id0 = NE2100_ID0,
.id1 = NE2100_ID1, .id1 = NE2100_ID1,
...@@ -1232,15 +1232,15 @@ MODULE_PARM_DESC(dma, "ni6510 ISA DMA channel (ignored for some cards)"); ...@@ -1232,15 +1232,15 @@ MODULE_PARM_DESC(dma, "ni6510 ISA DMA channel (ignored for some cards)");
int __init init_module(void) int __init init_module(void)
{ {
dev_ni65 = ni65_probe(-1); dev_ni65 = ni65_probe(-1);
return PTR_ERR_OR_ZERO(dev_ni65); return PTR_ERR_OR_ZERO(dev_ni65);
} }
void __exit cleanup_module(void) void __exit cleanup_module(void)
{ {
unregister_netdev(dev_ni65); unregister_netdev(dev_ni65);
cleanup_card(dev_ni65); cleanup_card(dev_ni65);
free_netdev(dev_ni65); free_netdev(dev_ni65);
} }
#endif /* MODULE */ #endif /* MODULE */
......
...@@ -541,7 +541,7 @@ static int mace_init(mace_private *lp, unsigned int ioaddr, char *enet_addr) ...@@ -541,7 +541,7 @@ static int mace_init(mace_private *lp, unsigned int ioaddr, char *enet_addr)
if(++ct > 500) if(++ct > 500)
{ {
pr_err("reset failed, card removed?\n"); pr_err("reset failed, card removed?\n");
return -1; return -1;
} }
udelay(1); udelay(1);
} }
...@@ -585,11 +585,11 @@ static int mace_init(mace_private *lp, unsigned int ioaddr, char *enet_addr) ...@@ -585,11 +585,11 @@ static int mace_init(mace_private *lp, unsigned int ioaddr, char *enet_addr)
ct = 0; ct = 0;
while (mace_read(lp, ioaddr, MACE_IAC) & MACE_IAC_ADDRCHG) while (mace_read(lp, ioaddr, MACE_IAC) & MACE_IAC_ADDRCHG)
{ {
if(++ ct > 500) if(++ ct > 500)
{ {
pr_err("ADDRCHG timeout, card removed?\n"); pr_err("ADDRCHG timeout, card removed?\n");
return -1; return -1;
} }
} }
/* Set PADR register */ /* Set PADR register */
for (i = 0; i < ETH_ALEN; i++) for (i = 0; i < ETH_ALEN; i++)
...@@ -655,7 +655,7 @@ static int nmclan_config(struct pcmcia_device *link) ...@@ -655,7 +655,7 @@ static int nmclan_config(struct pcmcia_device *link)
} }
if(mace_init(lp, ioaddr, dev->dev_addr) == -1) if(mace_init(lp, ioaddr, dev->dev_addr) == -1)
goto failed; goto failed;
/* The if_port symbol can be set when the module is loaded */ /* The if_port symbol can be set when the module is loaded */
if (if_port <= 2) if (if_port <= 2)
......
...@@ -150,7 +150,7 @@ struct lance_memory { ...@@ -150,7 +150,7 @@ struct lance_memory {
struct lance_private { struct lance_private {
volatile unsigned short *iobase; volatile unsigned short *iobase;
struct lance_memory *mem; struct lance_memory *mem;
int new_rx, new_tx; /* The next free ring entry */ int new_rx, new_tx; /* The next free ring entry */
int old_tx, old_rx; /* ring entry to be processed */ int old_tx, old_rx; /* ring entry to be processed */
/* These two must be longs for set_bit() */ /* These two must be longs for set_bit() */
long tx_full; long tx_full;
...@@ -465,7 +465,7 @@ static void lance_init_ring( struct net_device *dev ) ...@@ -465,7 +465,7 @@ static void lance_init_ring( struct net_device *dev )
for( i = 0; i < TX_RING_SIZE; i++ ) { for( i = 0; i < TX_RING_SIZE; i++ ) {
MEM->tx_head[i].base = dvma_vtob(MEM->tx_data[i]); MEM->tx_head[i].base = dvma_vtob(MEM->tx_data[i]);
MEM->tx_head[i].flag = 0; MEM->tx_head[i].flag = 0;
MEM->tx_head[i].base_hi = MEM->tx_head[i].base_hi =
(dvma_vtob(MEM->tx_data[i])) >>16; (dvma_vtob(MEM->tx_data[i])) >>16;
MEM->tx_head[i].length = 0; MEM->tx_head[i].length = 0;
MEM->tx_head[i].misc = 0; MEM->tx_head[i].misc = 0;
...@@ -581,8 +581,8 @@ lance_start_xmit(struct sk_buff *skb, struct net_device *dev) ...@@ -581,8 +581,8 @@ lance_start_xmit(struct sk_buff *skb, struct net_device *dev)
} }
AREG = CSR0; AREG = CSR0;
DPRINTK( 2, ( "%s: lance_start_xmit() called, csr0 %4.4x.\n", DPRINTK( 2, ( "%s: lance_start_xmit() called, csr0 %4.4x.\n",
dev->name, DREG )); dev->name, DREG ));
#ifdef CONFIG_SUN3X #ifdef CONFIG_SUN3X
/* this weirdness doesn't appear on sun3... */ /* this weirdness doesn't appear on sun3... */
...@@ -636,8 +636,8 @@ lance_start_xmit(struct sk_buff *skb, struct net_device *dev) ...@@ -636,8 +636,8 @@ lance_start_xmit(struct sk_buff *skb, struct net_device *dev)
/* Trigger an immediate send poll. */ /* Trigger an immediate send poll. */
REGA(CSR0) = CSR0_INEA | CSR0_TDMD | CSR0_STRT; REGA(CSR0) = CSR0_INEA | CSR0_TDMD | CSR0_STRT;
AREG = CSR0; AREG = CSR0;
DPRINTK( 2, ( "%s: lance_start_xmit() exiting, csr0 %4.4x.\n", DPRINTK( 2, ( "%s: lance_start_xmit() exiting, csr0 %4.4x.\n",
dev->name, DREG )); dev->name, DREG ));
dev_kfree_skb(skb); dev_kfree_skb(skb);
lp->lock = 0; lp->lock = 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment