]> Pileus Git - ~andy/linux/blobdiff - drivers/ata/pata_it8213.c
Merge branch 'next-evm' of git://git.kernel.org/pub/scm/linux/kernel/git/zohar/ima...
[~andy/linux] / drivers / ata / pata_it8213.c
index 4d142a2ab8fd42b72c55666b2e72275d477e8481..998af0e629b1a180654b46095e3e764ffc301e03 100644 (file)
@@ -258,7 +258,6 @@ static struct ata_port_operations it8213_ops = {
 
 static int it8213_init_one (struct pci_dev *pdev, const struct pci_device_id *ent)
 {
-       static int printed_version;
        static const struct ata_port_info info = {
                .flags          = ATA_FLAG_SLAVE_POSS,
                .pio_mask       = ATA_PIO4,
@@ -269,9 +268,7 @@ static int it8213_init_one (struct pci_dev *pdev, const struct pci_device_id *en
        /* Current IT8213 stuff is single port */
        const struct ata_port_info *ppi[] = { &info, &ata_dummy_port_info };
 
-       if (!printed_version++)
-               dev_printk(KERN_DEBUG, &pdev->dev,
-                          "version " DRV_VERSION "\n");
+       ata_print_version_once(&pdev->dev, DRV_VERSION);
 
        return ata_pci_bmdma_init_one(pdev, ppi, &it8213_sht, NULL, 0);
 }