diff options
-rw-r--r-- | drivers/uio/uio_pci_generic.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/drivers/uio/uio_pci_generic.c b/drivers/uio/uio_pci_generic.c index 85c9884a67fd..fc22e1e6f215 100644 --- a/drivers/uio/uio_pci_generic.c +++ b/drivers/uio/uio_pci_generic.c | |||
@@ -128,12 +128,6 @@ static int __devinit probe(struct pci_dev *pdev, | |||
128 | struct uio_pci_generic_dev *gdev; | 128 | struct uio_pci_generic_dev *gdev; |
129 | int err; | 129 | int err; |
130 | 130 | ||
131 | if (!pdev->irq) { | ||
132 | dev_warn(&pdev->dev, "No IRQ assigned to device: " | ||
133 | "no support for interrupts?\n"); | ||
134 | return -ENODEV; | ||
135 | } | ||
136 | |||
137 | err = pci_enable_device(pdev); | 131 | err = pci_enable_device(pdev); |
138 | if (err) { | 132 | if (err) { |
139 | dev_err(&pdev->dev, "%s: pci_enable_device failed: %d\n", | 133 | dev_err(&pdev->dev, "%s: pci_enable_device failed: %d\n", |
@@ -141,6 +135,13 @@ static int __devinit probe(struct pci_dev *pdev, | |||
141 | return err; | 135 | return err; |
142 | } | 136 | } |
143 | 137 | ||
138 | if (!pdev->irq) { | ||
139 | dev_warn(&pdev->dev, "No IRQ assigned to device: " | ||
140 | "no support for interrupts?\n"); | ||
141 | pci_disable_device(pdev); | ||
142 | return -ENODEV; | ||
143 | } | ||
144 | |||
144 | err = verify_pci_2_3(pdev); | 145 | err = verify_pci_2_3(pdev); |
145 | if (err) | 146 | if (err) |
146 | goto err_verify; | 147 | goto err_verify; |