diff options
author | Shaun Ruffell <sruffell@digium.com> | 2012-03-22 18:31:22 +0000 |
---|---|---|
committer | Shaun Ruffell <sruffell@digium.com> | 2012-03-22 18:31:22 +0000 |
commit | b412e9ebcd1811a7f85023430892b95ada140e62 (patch) | |
tree | 2ef0672ccde2d6d0048b6920d01a9157faf95f3b | |
parent | 2f83370afda2c7c07fab21aad80cdcafbd1ac34b (diff) |
wct4xxp: Trivial formatting changes around request_irq.
Quiet some checkpatch warnings introduced by the last patch. I kept this
separate since it may have obscured the real change made in the previous
commit if combined.
Signed-off-by: Shaun Ruffell <sruffell@digium.com>
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@10590 a0bf4364-ded3-4de4-8d8a-66a801d63aff
-rw-r--r-- | drivers/dahdi/wct4xxp/base.c | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/drivers/dahdi/wct4xxp/base.c b/drivers/dahdi/wct4xxp/base.c index c1367b4..0c9ceda 100644 --- a/drivers/dahdi/wct4xxp/base.c +++ b/drivers/dahdi/wct4xxp/base.c @@ -5207,18 +5207,19 @@ t4_init_one(struct pci_dev *pdev, const struct pci_device_id *ent) (wc->numspans == 8) ? "wct8xxp" : (wc->numspans == 2) ? "wct2xxp" : "wct4xxp", - wc)) + wc)) { #else - if (!(wc->tspans[0]->spanflags & FLAG_2NDGEN)) { - dev_notice(&wc->dev->dev, "This driver does not " - "support 1st gen modules\n"); - free_wc(wc); - return -ENODEV; - } - if (request_irq(pdev->irq, t4_interrupt_gen2, DAHDI_IRQ_SHARED, "t4xxp", wc)) + if (!(wc->tspans[0]->spanflags & FLAG_2NDGEN)) { + dev_notice(&wc->dev->dev, "This driver does not " + "support 1st gen modules\n"); + free_wc(wc); + return -ENODEV; + } + + if (request_irq(pdev->irq, t4_interrupt_gen2, + DAHDI_IRQ_SHARED, "t4xxp", wc)) { #endif - { - dev_notice(&wc->dev->dev, "t4xxp: Unable to request IRQ %d\n", + dev_notice(&wc->dev->dev, "Unable to request IRQ %d\n", pdev->irq); free_wc(wc); return -EIO; |