]> Git Repo - linux.git/commitdiff
pata_rz1000: use printk_once
authorMarcin Slusarz <[email protected]>
Sun, 23 Aug 2009 18:23:34 +0000 (20:23 +0200)
committerJeff Garzik <[email protected]>
Fri, 11 Sep 2009 06:33:59 +0000 (02:33 -0400)
Signed-off-by: Marcin Slusarz <[email protected]>
Signed-off-by: Jeff Garzik <[email protected]>
drivers/ata/pata_rz1000.c

index 0c574c065c6268a6b2bd66b1233ad0a2dd1f5f17..a5e4dfe60b41f0b19f3fd1bc71975797ca5a96e8 100644 (file)
@@ -85,7 +85,6 @@ static int rz1000_fifo_disable(struct pci_dev *pdev)
 
 static int rz1000_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,
@@ -93,8 +92,7 @@ static int rz1000_init_one (struct pci_dev *pdev, const struct pci_device_id *en
        };
        const struct ata_port_info *ppi[] = { &info, NULL };
 
-       if (!printed_version++)
-               printk(KERN_DEBUG DRV_NAME " version " DRV_VERSION "\n");
+       printk_once(KERN_DEBUG DRV_NAME " version " DRV_VERSION "\n");
 
        if (rz1000_fifo_disable(pdev) == 0)
                return ata_pci_sff_init_one(pdev, ppi, &rz1000_sht, NULL);
This page took 0.051202 seconds and 4 git commands to generate.