diff options
Diffstat (limited to 'drivers/ata/pata_sis.c')
-rw-r--r-- | drivers/ata/pata_sis.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/ata/pata_sis.c b/drivers/ata/pata_sis.c index dc7e91562e43..abda90f51247 100644 --- a/drivers/ata/pata_sis.c +++ b/drivers/ata/pata_sis.c | |||
@@ -862,6 +862,7 @@ static int sis_init_one (struct pci_dev *pdev, const struct pci_device_id *ent) | |||
862 | struct pci_dev *host = NULL; | 862 | struct pci_dev *host = NULL; |
863 | struct sis_chipset *chipset = NULL; | 863 | struct sis_chipset *chipset = NULL; |
864 | struct sis_chipset *sets; | 864 | struct sis_chipset *sets; |
865 | int rc; | ||
865 | 866 | ||
866 | static struct sis_chipset sis_chipsets[] = { | 867 | static struct sis_chipset sis_chipsets[] = { |
867 | 868 | ||
@@ -914,8 +915,11 @@ static int sis_init_one (struct pci_dev *pdev, const struct pci_device_id *ent) | |||
914 | dev_printk(KERN_DEBUG, &pdev->dev, | 915 | dev_printk(KERN_DEBUG, &pdev->dev, |
915 | "version " DRV_VERSION "\n"); | 916 | "version " DRV_VERSION "\n"); |
916 | 917 | ||
917 | /* We have to find the bridge first */ | 918 | rc = pcim_enable_device(pdev); |
919 | if (rc) | ||
920 | return rc; | ||
918 | 921 | ||
922 | /* We have to find the bridge first */ | ||
919 | for (sets = &sis_chipsets[0]; sets->device; sets++) { | 923 | for (sets = &sis_chipsets[0]; sets->device; sets++) { |
920 | host = pci_get_device(PCI_VENDOR_ID_SI, sets->device, NULL); | 924 | host = pci_get_device(PCI_VENDOR_ID_SI, sets->device, NULL); |
921 | if (host != NULL) { | 925 | if (host != NULL) { |