diff options
author | Joe Perches <joe@perches.com> | 2012-02-19 22:52:38 -0500 |
---|---|---|
committer | Joe Perches <joe@perches.com> | 2012-02-21 12:04:01 -0500 |
commit | 475be4d85a274d0961593db41cf85689db1d583c (patch) | |
tree | b2b8931eb747794730522c3cf1898e46948527b9 /drivers/isdn/hardware/avm/t1pci.c | |
parent | 0b0a635f79f91f3755b6518627ea06dd0dbfd523 (diff) |
isdn: whitespace coding style cleanup
isdn source code uses a not-current coding style.
Update the coding style used on a per-line basis
so that git diff -w shows only elided blank lines
at EOF.
Done with emacs and some scripts and some typing.
Built x86 allyesconfig.
No detected change in objdump -d or size.
Signed-off-by: Joe Perches <joe@perches.com>
Diffstat (limited to 'drivers/isdn/hardware/avm/t1pci.c')
-rw-r--r-- | drivers/isdn/hardware/avm/t1pci.c | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/drivers/isdn/hardware/avm/t1pci.c b/drivers/isdn/hardware/avm/t1pci.c index a79eb5afb92d..cb9a30427bd2 100644 --- a/drivers/isdn/hardware/avm/t1pci.c +++ b/drivers/isdn/hardware/avm/t1pci.c | |||
@@ -1,9 +1,9 @@ | |||
1 | /* $Id: t1pci.c,v 1.1.2.2 2004/01/16 21:09:27 keil Exp $ | 1 | /* $Id: t1pci.c,v 1.1.2.2 2004/01/16 21:09:27 keil Exp $ |
2 | * | 2 | * |
3 | * Module for AVM T1 PCI-card. | 3 | * Module for AVM T1 PCI-card. |
4 | * | 4 | * |
5 | * Copyright 1999 by Carsten Paeth <calle@calle.de> | 5 | * Copyright 1999 by Carsten Paeth <calle@calle.de> |
6 | * | 6 | * |
7 | * This software may be used and distributed according to the terms | 7 | * This software may be used and distributed according to the terms |
8 | * of the GNU General Public License, incorporated herein by reference. | 8 | * of the GNU General Public License, incorporated herein by reference. |
9 | * | 9 | * |
@@ -59,7 +59,7 @@ static int t1pci_add_card(struct capicardparams *p, struct pci_dev *pdev) | |||
59 | goto err; | 59 | goto err; |
60 | } | 60 | } |
61 | 61 | ||
62 | card->dma = avmcard_dma_alloc("t1pci", pdev, 2048+128, 2048+128); | 62 | card->dma = avmcard_dma_alloc("t1pci", pdev, 2048 + 128, 2048 + 128); |
63 | if (!card->dma) { | 63 | if (!card->dma) { |
64 | printk(KERN_WARNING "t1pci: no memory.\n"); | 64 | printk(KERN_WARNING "t1pci: no memory.\n"); |
65 | retval = -ENOMEM; | 65 | retval = -ENOMEM; |
@@ -136,17 +136,17 @@ static int t1pci_add_card(struct capicardparams *p, struct pci_dev *pdev) | |||
136 | pci_set_drvdata(pdev, card); | 136 | pci_set_drvdata(pdev, card); |
137 | return 0; | 137 | return 0; |
138 | 138 | ||
139 | err_free_irq: | 139 | err_free_irq: |
140 | free_irq(card->irq, card); | 140 | free_irq(card->irq, card); |
141 | err_unmap: | 141 | err_unmap: |
142 | iounmap(card->mbase); | 142 | iounmap(card->mbase); |
143 | err_release_region: | 143 | err_release_region: |
144 | release_region(card->port, AVMB1_PORTLEN); | 144 | release_region(card->port, AVMB1_PORTLEN); |
145 | err_free_dma: | 145 | err_free_dma: |
146 | avmcard_dma_free(card->dma); | 146 | avmcard_dma_free(card->dma); |
147 | err_free: | 147 | err_free: |
148 | b1_free_card(card); | 148 | b1_free_card(card); |
149 | err: | 149 | err: |
150 | return retval; | 150 | return retval; |
151 | } | 151 | } |
152 | 152 | ||
@@ -157,7 +157,7 @@ static void t1pci_remove(struct pci_dev *pdev) | |||
157 | avmcard *card = pci_get_drvdata(pdev); | 157 | avmcard *card = pci_get_drvdata(pdev); |
158 | avmctrl_info *cinfo = card->ctrlinfo; | 158 | avmctrl_info *cinfo = card->ctrlinfo; |
159 | 159 | ||
160 | b1dma_reset(card); | 160 | b1dma_reset(card); |
161 | 161 | ||
162 | detach_capi_ctr(&cinfo->capi_ctrl); | 162 | detach_capi_ctr(&cinfo->capi_ctrl); |
163 | free_irq(card->irq, card); | 163 | free_irq(card->irq, card); |
@@ -217,10 +217,10 @@ static int __devinit t1pci_probe(struct pci_dev *dev, | |||
217 | } | 217 | } |
218 | 218 | ||
219 | static struct pci_driver t1pci_pci_driver = { | 219 | static struct pci_driver t1pci_pci_driver = { |
220 | .name = "t1pci", | 220 | .name = "t1pci", |
221 | .id_table = t1pci_pci_tbl, | 221 | .id_table = t1pci_pci_tbl, |
222 | .probe = t1pci_probe, | 222 | .probe = t1pci_probe, |
223 | .remove = t1pci_remove, | 223 | .remove = t1pci_remove, |
224 | }; | 224 | }; |
225 | 225 | ||
226 | static struct capi_driver capi_driver_t1pci = { | 226 | static struct capi_driver capi_driver_t1pci = { |
@@ -237,7 +237,7 @@ static int __init t1pci_init(void) | |||
237 | if ((p = strchr(revision, ':')) != NULL && p[1]) { | 237 | if ((p = strchr(revision, ':')) != NULL && p[1]) { |
238 | strlcpy(rev, p + 2, 32); | 238 | strlcpy(rev, p + 2, 32); |
239 | if ((p = strchr(rev, '$')) != NULL && p > rev) | 239 | if ((p = strchr(rev, '$')) != NULL && p > rev) |
240 | *(p-1) = 0; | 240 | *(p - 1) = 0; |
241 | } else | 241 | } else |
242 | strcpy(rev, "1.0"); | 242 | strcpy(rev, "1.0"); |
243 | 243 | ||