diff options
Diffstat (limited to 'drivers/ata/pata_ns87415.c')
-rw-r--r-- | drivers/ata/pata_ns87415.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/ata/pata_ns87415.c b/drivers/ata/pata_ns87415.c index d0e2e50823b1..93eb958cb0c9 100644 --- a/drivers/ata/pata_ns87415.c +++ b/drivers/ata/pata_ns87415.c | |||
@@ -410,6 +410,7 @@ static int ns87415_init_one (struct pci_dev *pdev, const struct pci_device_id *e | |||
410 | .port_ops = &ns87415_pata_ops, | 410 | .port_ops = &ns87415_pata_ops, |
411 | }; | 411 | }; |
412 | const struct ata_port_info *ppi[] = { &info, NULL }; | 412 | const struct ata_port_info *ppi[] = { &info, NULL }; |
413 | int rc; | ||
413 | #if defined(CONFIG_SUPERIO) | 414 | #if defined(CONFIG_SUPERIO) |
414 | static const struct ata_port_info info87560 = { | 415 | static const struct ata_port_info info87560 = { |
415 | .sht = &ns87415_sht, | 416 | .sht = &ns87415_sht, |
@@ -425,6 +426,11 @@ static int ns87415_init_one (struct pci_dev *pdev, const struct pci_device_id *e | |||
425 | if (!printed_version++) | 426 | if (!printed_version++) |
426 | dev_printk(KERN_DEBUG, &pdev->dev, | 427 | dev_printk(KERN_DEBUG, &pdev->dev, |
427 | "version " DRV_VERSION "\n"); | 428 | "version " DRV_VERSION "\n"); |
429 | |||
430 | rc = pcim_enable_device(pdev); | ||
431 | if (rc) | ||
432 | return rc; | ||
433 | |||
428 | /* Select 512 byte sectors */ | 434 | /* Select 512 byte sectors */ |
429 | pci_write_config_byte(pdev, 0x55, 0xEE); | 435 | pci_write_config_byte(pdev, 0x55, 0xEE); |
430 | /* Select PIO0 8bit clocking */ | 436 | /* Select PIO0 8bit clocking */ |