Commit c984123c7a888731b7e971e1c878b6f2b716b292
Committed by
Jeff Garzik
1 parent
78d5ae39af
Exists in
master
and in
7 other branches
pata_rz1000: use printk_once
Signed-off-by: Marcin Slusarz <marcin.slusarz@gmail.com> Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Showing 1 changed file with 1 additions and 3 deletions Side-by-side Diff
drivers/ata/pata_rz1000.c
... | ... | @@ -85,7 +85,6 @@ |
85 | 85 | |
86 | 86 | static int rz1000_init_one (struct pci_dev *pdev, const struct pci_device_id *ent) |
87 | 87 | { |
88 | - static int printed_version; | |
89 | 88 | static const struct ata_port_info info = { |
90 | 89 | .flags = ATA_FLAG_SLAVE_POSS, |
91 | 90 | .pio_mask = ATA_PIO4, |
... | ... | @@ -93,8 +92,7 @@ |
93 | 92 | }; |
94 | 93 | const struct ata_port_info *ppi[] = { &info, NULL }; |
95 | 94 | |
96 | - if (!printed_version++) | |
97 | - printk(KERN_DEBUG DRV_NAME " version " DRV_VERSION "\n"); | |
95 | + printk_once(KERN_DEBUG DRV_NAME " version " DRV_VERSION "\n"); | |
98 | 96 | |
99 | 97 | if (rz1000_fifo_disable(pdev) == 0) |
100 | 98 | return ata_pci_sff_init_one(pdev, ppi, &rz1000_sht, NULL); |