diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2010-08-07 20:08:02 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-08-07 20:08:02 -0400 |
commit | 3cc08fc35db75b059118626c30b60b0f56583802 (patch) | |
tree | 704d71199c8be8d5b822ca424675291e8cec7bde /drivers/infiniband/hw/ipath | |
parent | faa38b5e0e092914764cdba9f83d31a3f794d182 (diff) | |
parent | 03b37ecdb3975f09832747600853d3818a50eda3 (diff) |
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/roland/infiniband
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/roland/infiniband: (42 commits)
IB/qib: Add missing <linux/slab.h> include
IB/ehca: Drop unnecessary NULL test
RDMA/nes: Fix confusing if statement indentation
IB/ehca: Init irq tasklet before irq can happen
RDMA/nes: Fix misindented code
RDMA/nes: Fix showing wqm_quanta
RDMA/nes: Get rid of "set but not used" variables
RDMA/nes: Read firmware version from correct place
IB/srp: Export req_lim via sysfs
IB/srp: Make receive buffer handling more robust
IB/srp: Use print_hex_dump()
IB: Rename RAW_ETY to RAW_ETHERTYPE
RDMA/nes: Fix two sparse warnings
RDMA/cxgb3: Make needlessly global iwch_l2t_send() static
IB/iser: Make needlessly global iser_alloc_rx_descriptors() static
RDMA/cxgb4: Add timeouts when waiting for FW responses
IB/qib: Fix race between qib_error_qp() and receive packet processing
IB/qib: Limit the number of packets processed per interrupt
IB/qib: Allow writes to the diag_counters to be able to clear them
IB/qib: Set cfgctxts to number of CPUs by default
...
Diffstat (limited to 'drivers/infiniband/hw/ipath')
-rw-r--r-- | drivers/infiniband/hw/ipath/ipath_driver.c | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/drivers/infiniband/hw/ipath/ipath_driver.c b/drivers/infiniband/hw/ipath/ipath_driver.c index 21337468c652..765f0fc1da76 100644 --- a/drivers/infiniband/hw/ipath/ipath_driver.c +++ b/drivers/infiniband/hw/ipath/ipath_driver.c | |||
@@ -390,6 +390,8 @@ done: | |||
390 | ipath_enable_armlaunch(dd); | 390 | ipath_enable_armlaunch(dd); |
391 | } | 391 | } |
392 | 392 | ||
393 | static void cleanup_device(struct ipath_devdata *dd); | ||
394 | |||
393 | static int __devinit ipath_init_one(struct pci_dev *pdev, | 395 | static int __devinit ipath_init_one(struct pci_dev *pdev, |
394 | const struct pci_device_id *ent) | 396 | const struct pci_device_id *ent) |
395 | { | 397 | { |
@@ -616,8 +618,13 @@ static int __devinit ipath_init_one(struct pci_dev *pdev, | |||
616 | goto bail; | 618 | goto bail; |
617 | 619 | ||
618 | bail_irqsetup: | 620 | bail_irqsetup: |
619 | if (pdev->irq) | 621 | cleanup_device(dd); |
620 | free_irq(pdev->irq, dd); | 622 | |
623 | if (dd->ipath_irq) | ||
624 | dd->ipath_f_free_irq(dd); | ||
625 | |||
626 | if (dd->ipath_f_cleanup) | ||
627 | dd->ipath_f_cleanup(dd); | ||
621 | 628 | ||
622 | bail_iounmap: | 629 | bail_iounmap: |
623 | iounmap((volatile void __iomem *) dd->ipath_kregbase); | 630 | iounmap((volatile void __iomem *) dd->ipath_kregbase); |
@@ -635,7 +642,7 @@ bail: | |||
635 | return ret; | 642 | return ret; |
636 | } | 643 | } |
637 | 644 | ||
638 | static void __devexit cleanup_device(struct ipath_devdata *dd) | 645 | static void cleanup_device(struct ipath_devdata *dd) |
639 | { | 646 | { |
640 | int port; | 647 | int port; |
641 | struct ipath_portdata **tmp; | 648 | struct ipath_portdata **tmp; |