ata: Add and use ata_print_version_once
[linux-2.6-block.git] / drivers / ata / pata_atp867x.c
index bcbf99856e1f45e4ead7751e923d97ff399769fd..3cfabb262af294ab9612eff3bc8b31bb44213594 100644 (file)
@@ -487,7 +487,6 @@ static int atp867x_ata_pci_sff_init_host(struct ata_host *host)
 static int atp867x_init_one(struct pci_dev *pdev,
        const struct pci_device_id *id)
 {
-       static int printed_version;
        static const struct ata_port_info info_867x = {
                .flags          = ATA_FLAG_SLAVE_POSS,
                .pio_mask       = ATA_PIO4,
@@ -499,8 +498,7 @@ static int atp867x_init_one(struct pci_dev *pdev,
        const struct ata_port_info *ppi[] = { &info_867x, NULL };
        int rc;
 
-       if (!printed_version++)
-               dev_info(&pdev->dev, "version " DRV_VERSION "\n");
+       ata_print_version_once(&pdev->dev, DRV_VERSION);
 
        rc = pcim_enable_device(pdev);
        if (rc)