diff options
-rw-r--r-- | drivers/pci/pci.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c index 71d561fda0a2..7d4ce906d207 100644 --- a/drivers/pci/pci.c +++ b/drivers/pci/pci.c | |||
@@ -823,7 +823,8 @@ int pcim_enable_device(struct pci_dev *pdev) | |||
823 | dr = get_pci_dr(pdev); | 823 | dr = get_pci_dr(pdev); |
824 | if (unlikely(!dr)) | 824 | if (unlikely(!dr)) |
825 | return -ENOMEM; | 825 | return -ENOMEM; |
826 | WARN_ON(!!dr->enabled); | 826 | if (dr->enabled) |
827 | return 0; | ||
827 | 828 | ||
828 | rc = pci_enable_device(pdev); | 829 | rc = pci_enable_device(pdev); |
829 | if (!rc) { | 830 | if (!rc) { |