Skip to contentSkip to conversation

pata_sil680: remove duplicate pcim_enable_device

PATCH Applied David Milburn 4 participants 4 messages Aug 29, 2008 – Sep 8, 2008 libata

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 pata_sil680: remove duplicate pcim_enable_device

Remove duplicate call to pcim_enable_device in sil680_init_one.

---
 drivers/ata/pata_sil680.c |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)
drivers/ata/pata_sil680.c +0 -3
index 720b864..e970b22 100644
@@ -322,9 +322,6 @@ static int __devinit sil680_init_one(struct pci_dev *pdev,
 	/* Try to acquire MMIO resources and fallback to PIO if
 	 * that fails
 	 */
-	rc = pcim_enable_device(pdev);
-	if (rc)
-		return rc;
 	rc = pcim_iomap_regions(pdev, 1 << SIL680_MMIO_BAR, DRV_NAME);
 	if (rc)
 		goto use_ioports;
#2 lore raw
Quoted 10 lines · Alan Cox
Quoted 3 lines · On Fri, 29 Aug 2008 10:36:28 -0500 David Milburn <[email protected]> wrote:

Remove duplicate call to pcim_enable_device in sil680_init_one.

Doh.. ;)

Doh... was that me? Going through the log... Yay, it was me in the commit f08048e94564d009b19038cfbdd800aa83e79c7f. Lucky me. I was supposed to move enabling above but apparently forgot to killing the original one. Heh... anyways. Thanks for spotting this.

Embarrassingly-Acked-by Tejun Heo <[email protected]>
Signature · 1 line
tejun
Applied
#3 lore raw
In reply to David Milburn
Quoted 12 lines · David Milburn

Remove duplicate call to pcim_enable_device in sil680_init_one.

---
 drivers/ata/pata_sil680.c |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)
drivers/ata/pata_sil680.c +0 -0
index 720b864..e970b22 100644

drivers/ata/pata_sil680.c static int __devinit sil680_init_one(struct pci_dev *pdev, · line 327

Quoted 9 lines
drivers/ata/pata_sil680.c +0 -3
@@ -322,9 +322,6 @@ static int __devinit sil680_init_one(struct pci_dev *pdev,
 	/* Try to acquire MMIO resources and fallback to PIO if
 	 * that fails
 	 */
-	rc = pcim_enable_device(pdev);
-	if (rc)
-		return rc;
 	rc = pcim_iomap_regions(pdev, 1 << SIL680_MMIO_BAR, DRV_NAME);
 	if (rc)
 		goto use_ioports;

applied