diff options
Diffstat (limited to 'drivers/ata/sata_qstor.c')
-rw-r--r-- | drivers/ata/sata_qstor.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/ata/sata_qstor.c b/drivers/ata/sata_qstor.c index 5702561e4e7d..9d1a47bb21b3 100644 --- a/drivers/ata/sata_qstor.c +++ b/drivers/ata/sata_qstor.c | |||
@@ -587,14 +587,12 @@ static int qs_set_dma_masks(struct pci_dev *pdev, void __iomem *mmio_base) | |||
587 | static int qs_ata_init_one(struct pci_dev *pdev, | 587 | static int qs_ata_init_one(struct pci_dev *pdev, |
588 | const struct pci_device_id *ent) | 588 | const struct pci_device_id *ent) |
589 | { | 589 | { |
590 | static int printed_version; | ||
591 | unsigned int board_idx = (unsigned int) ent->driver_data; | 590 | unsigned int board_idx = (unsigned int) ent->driver_data; |
592 | const struct ata_port_info *ppi[] = { &qs_port_info[board_idx], NULL }; | 591 | const struct ata_port_info *ppi[] = { &qs_port_info[board_idx], NULL }; |
593 | struct ata_host *host; | 592 | struct ata_host *host; |
594 | int rc, port_no; | 593 | int rc, port_no; |
595 | 594 | ||
596 | if (!printed_version++) | 595 | ata_print_version_once(&pdev->dev, DRV_VERSION); |
597 | dev_printk(KERN_DEBUG, &pdev->dev, "version " DRV_VERSION "\n"); | ||
598 | 596 | ||
599 | /* alloc host */ | 597 | /* alloc host */ |
600 | host = ata_host_alloc_pinfo(&pdev->dev, ppi, QS_PORTS); | 598 | host = ata_host_alloc_pinfo(&pdev->dev, ppi, QS_PORTS); |