diff options
Diffstat (limited to 'drivers/ata/pata_artop.c')
-rw-r--r-- | drivers/ata/pata_artop.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/ata/pata_artop.c b/drivers/ata/pata_artop.c index d4218310327b..2f8148016971 100644 --- a/drivers/ata/pata_artop.c +++ b/drivers/ata/pata_artop.c | |||
@@ -446,11 +446,16 @@ static int artop_init_one (struct pci_dev *pdev, const struct pci_device_id *id) | |||
446 | .port_ops = &artop6260_ops, | 446 | .port_ops = &artop6260_ops, |
447 | }; | 447 | }; |
448 | const struct ata_port_info *ppi[] = { NULL, NULL }; | 448 | const struct ata_port_info *ppi[] = { NULL, NULL }; |
449 | int rc; | ||
449 | 450 | ||
450 | if (!printed_version++) | 451 | if (!printed_version++) |
451 | dev_printk(KERN_DEBUG, &pdev->dev, | 452 | dev_printk(KERN_DEBUG, &pdev->dev, |
452 | "version " DRV_VERSION "\n"); | 453 | "version " DRV_VERSION "\n"); |
453 | 454 | ||
455 | rc = pcim_enable_device(pdev); | ||
456 | if (rc) | ||
457 | return rc; | ||
458 | |||
454 | if (id->driver_data == 0) { /* 6210 variant */ | 459 | if (id->driver_data == 0) { /* 6210 variant */ |
455 | ppi[0] = &info_6210; | 460 | ppi[0] = &info_6210; |
456 | ppi[1] = &ata_dummy_port_info; | 461 | ppi[1] = &ata_dummy_port_info; |