diff options
author | John Crispin <blogic@openwrt.org> | 2014-09-12 06:51:26 +0000 |
---|---|---|
committer | John Crispin <blogic@openwrt.org> | 2014-09-12 06:51:26 +0000 |
commit | de8e11ca841620cd9e2f4f515fdf6ebea7e41036 (patch) | |
tree | 89cc7ed569c60409c09b2defcee68f966a510982 /target/linux/atheros/patches-3.14/110-ar2313_ethernet.patch | |
parent | a52aec95f4875e7a81ac9253da7a4344f8a243df (diff) | |
download | upstream-de8e11ca841620cd9e2f4f515fdf6ebea7e41036.tar.gz upstream-de8e11ca841620cd9e2f4f515fdf6ebea7e41036.tar.bz2 upstream-de8e11ca841620cd9e2f4f515fdf6ebea7e41036.zip |
atheros: add blank line after declarations
as suggested by checkpach.
Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42486 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/atheros/patches-3.14/110-ar2313_ethernet.patch')
-rw-r--r-- | target/linux/atheros/patches-3.14/110-ar2313_ethernet.patch | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/target/linux/atheros/patches-3.14/110-ar2313_ethernet.patch b/target/linux/atheros/patches-3.14/110-ar2313_ethernet.patch index bda0ce3258..42812ff23a 100644 --- a/target/linux/atheros/patches-3.14/110-ar2313_ethernet.patch +++ b/target/linux/atheros/patches-3.14/110-ar2313_ethernet.patch @@ -33,7 +33,7 @@ +obj-$(CONFIG_NET_AR231X) += ar231x.o --- /dev/null +++ b/drivers/net/ethernet/atheros/ar231x/ar231x.c -@@ -0,0 +1,1250 @@ +@@ -0,0 +1,1254 @@ +/* + * ar231x.c: Linux driver for the Atheros AR231x Ethernet device. + * @@ -375,6 +375,7 @@ +{ + struct net_device *dev = platform_get_drvdata(pdev); + struct ar231x_private *sp = netdev_priv(dev); ++ + rx_tasklet_cleanup(dev); + ar231x_init_cleanup(dev); + unregister_netdev(dev); @@ -416,6 +417,7 @@ +static void ar231x_free_descriptors(struct net_device *dev) +{ + struct ar231x_private *sp = netdev_priv(dev); ++ + if (sp->rx_ring != NULL) { + kfree((void *)KSEG0ADDR(sp->rx_ring)); + sp->rx_ring = NULL; @@ -458,6 +460,7 @@ + /* Initialize the transmit Descriptors */ + for (j = 0; j < AR2313_DESCR_ENTRIES; j++) { + ar231x_descr_t *td = &sp->tx_ring[j]; ++ + td->status = 0; + td->devcs = DMA_TX1_CHAINED; + td->addr = 0; @@ -945,6 +948,7 @@ + tasklet_hi_schedule(&sp->rx_tasklet); + } else { + unsigned long flags; ++ + spin_lock_irqsave(&sp->lock, flags); + sp->dma_regs->intr_ena |= DMA_STATUS_RI; + spin_unlock_irqrestore(&sp->lock, flags); |