diff options
author | Marcin Slusarz <marcin.slusarz@gmail.com> | 2009-08-24 10:56:38 +0200 |
---|---|---|
committer | Jens Axboe <jens.axboe@oracle.com> | 2009-09-11 14:34:33 +0200 |
commit | 49b3a3cbc0311f8f809183696b1f2ab824b18a51 (patch) | |
tree | 3ec892d4cb7e8d96f9b0ec26bb7eefaa901201b0 /drivers/block/sx8.c | |
parent | 212a502676c308ead964a024e081529ad3f8d94c (diff) | |
download | op-kernel-dev-49b3a3cbc0311f8f809183696b1f2ab824b18a51.zip op-kernel-dev-49b3a3cbc0311f8f809183696b1f2ab824b18a51.tar.gz |
block: use printk_once
Signed-off-by: Marcin Slusarz <marcin.slusarz@gmail.com>
Cc: Jens Axboe <axboe@kernel.dk>
Cc: Tim Waugh <tim@cyberelk.net>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Diffstat (limited to 'drivers/block/sx8.c')
-rw-r--r-- | drivers/block/sx8.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/block/sx8.c b/drivers/block/sx8.c index da403b6..f5cd2e8 100644 --- a/drivers/block/sx8.c +++ b/drivers/block/sx8.c @@ -1564,15 +1564,13 @@ static int carm_init_shm(struct carm_host *host) static int carm_init_one (struct pci_dev *pdev, const struct pci_device_id *ent) { - static unsigned int printed_version; struct carm_host *host; unsigned int pci_dac; int rc; struct request_queue *q; unsigned int i; - if (!printed_version++) - printk(KERN_DEBUG DRV_NAME " version " DRV_VERSION "\n"); + printk_once(KERN_DEBUG DRV_NAME " version " DRV_VERSION "\n"); rc = pci_enable_device(pdev); if (rc) |