diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2008-02-01 16:47:54 -0500 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-02-01 16:47:54 -0500 |
| commit | cbb51afa6d69be003cc827a89e023906885f241e (patch) | |
| tree | fc38ae723b6080f5073729fe5306ec47d81078fe /drivers/pci/pci.c | |
| parent | dd5f5fed6c9458a7aa81eeef3732cc3a9891cfdf (diff) | |
| parent | b95d58eaf20eb33c245a2172ec4ecf46bd832309 (diff) | |
Merge branch 'upstream-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jgarzik/libata-dev
* 'upstream-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jgarzik/libata-dev: (24 commits)
pci: allow multiple calls to pcim_enable_device()
Blackfin pata-bf54x driver: fix compiling bug - no ata_port struct in struct ata_device any more
Blackfin pata-bf54x driver: should cover all possible interrupt sources
Blackfin pata-bf54x driver: Add debug information
Blackfin pata-bf54x driver: Remove obsolete PM function
pata_sl82c105: dual channel support
ata_piix.c: make piix_merge_scr() static
sata_nv: fix for completion handling
sata_mv: Remove PCI dependency
sata_mv ncq Comments and version bump
sata_mv ncq Remove post internal cmd op
sata_mv ncq Enable NCQ operation
sata_mv ncq Introduce per-tag SG tables
ata_piix: IDE mode SATA patch for Intel ICH10 DeviceID's
ahci: RAID mode SATA patch for Intel ICH10 DeviceID's
sata_mv ncq Use DMA memory pools for hardware memory tables
sata_mv ncq Restrict max sectors to 8-bits on GenII NCQ
sata_mv ncq Ignore response status LSB on NCQ
sata_mv ncq Use hqtag instead of ioid
sata_mv ncq Add want ncq parameter for EDMA configuration
...
Diffstat (limited to 'drivers/pci/pci.c')
| -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) { |
