diff options
Diffstat (limited to 'drivers/ata/pata_optidma.c')
-rw-r--r-- | drivers/ata/pata_optidma.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/ata/pata_optidma.c b/drivers/ata/pata_optidma.c index f9b485a487ae..be8c421dc2aa 100644 --- a/drivers/ata/pata_optidma.c +++ b/drivers/ata/pata_optidma.c | |||
@@ -497,10 +497,15 @@ static int optidma_init_one(struct pci_dev *dev, const struct pci_device_id *id) | |||
497 | }; | 497 | }; |
498 | const struct ata_port_info *ppi[] = { &info_82c700, NULL }; | 498 | const struct ata_port_info *ppi[] = { &info_82c700, NULL }; |
499 | static int printed_version; | 499 | static int printed_version; |
500 | int rc; | ||
500 | 501 | ||
501 | if (!printed_version++) | 502 | if (!printed_version++) |
502 | dev_printk(KERN_DEBUG, &dev->dev, "version " DRV_VERSION "\n"); | 503 | dev_printk(KERN_DEBUG, &dev->dev, "version " DRV_VERSION "\n"); |
503 | 504 | ||
505 | rc = pcim_enable_device(dev); | ||
506 | if (rc) | ||
507 | return rc; | ||
508 | |||
504 | /* Fixed location chipset magic */ | 509 | /* Fixed location chipset magic */ |
505 | inw(0x1F1); | 510 | inw(0x1F1); |
506 | inw(0x1F1); | 511 | inw(0x1F1); |