ata: Add and use ata_print_version_once
[pandora-kernel.git] / drivers / ata / pata_mpiix.c
index d8d9c58..9dc16df 100644 (file)
@@ -152,15 +152,13 @@ static struct ata_port_operations mpiix_port_ops = {
 static int mpiix_init_one(struct pci_dev *dev, const struct pci_device_id *id)
 {
        /* Single threaded by the PCI probe logic */
-       static int printed_version;
        struct ata_host *host;
        struct ata_port *ap;
        void __iomem *cmd_addr, *ctl_addr;
        u16 idetim;
        int cmd, ctl, irq;
 
-       if (!printed_version++)
-               dev_printk(KERN_DEBUG, &dev->dev, "version " DRV_VERSION "\n");
+       ata_print_version_once(&dev->dev, DRV_VERSION);
 
        host = ata_host_alloc(&dev->dev, 1);
        if (!host)