diff options
author | Joe Perches <joe@perches.com> | 2011-01-31 11:39:24 -0500 |
---|---|---|
committer | Jeff Garzik <jgarzik@pobox.com> | 2011-03-14 02:56:31 -0400 |
commit | 8d7b1c70b3c1aac4b63109f5c73f732f1d63fad6 (patch) | |
tree | 0b09875f032489c28efe29828d7faae2d61afaa8 /drivers/ata/pata_hpt366.c | |
parent | a17139b6f63709b2d409c027f8ab401f5aa136d3 (diff) |
ata: pata: Convert pr_*(DRV_NAME ...) to pr_fmt/pr_<level>
Commit 40d69ba029c8d5de51aaeb5358999266c482d00a
("pata_hpt{37x|3x2n}: use pr_*(DRV_NAME ...) instead of printk(KERN_* ...)")
used pr_<level>.
Add #define pr_fmt and remove DRV_NAME.
Increment driver version numbers.
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Jeff Garzik <jgarzik@pobox.com>
Diffstat (limited to 'drivers/ata/pata_hpt366.c')
-rw-r--r-- | drivers/ata/pata_hpt366.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/ata/pata_hpt366.c b/drivers/ata/pata_hpt366.c index 538ec38ba995..6c77d68dbd05 100644 --- a/drivers/ata/pata_hpt366.c +++ b/drivers/ata/pata_hpt366.c | |||
@@ -14,6 +14,7 @@ | |||
14 | * Look into engine reset on timeout errors. Should not be required. | 14 | * Look into engine reset on timeout errors. Should not be required. |
15 | */ | 15 | */ |
16 | 16 | ||
17 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt | ||
17 | 18 | ||
18 | #include <linux/kernel.h> | 19 | #include <linux/kernel.h> |
19 | #include <linux/module.h> | 20 | #include <linux/module.h> |
@@ -25,7 +26,7 @@ | |||
25 | #include <linux/libata.h> | 26 | #include <linux/libata.h> |
26 | 27 | ||
27 | #define DRV_NAME "pata_hpt366" | 28 | #define DRV_NAME "pata_hpt366" |
28 | #define DRV_VERSION "0.6.10" | 29 | #define DRV_VERSION "0.6.11" |
29 | 30 | ||
30 | struct hpt_clock { | 31 | struct hpt_clock { |
31 | u8 xfer_mode; | 32 | u8 xfer_mode; |
@@ -160,8 +161,8 @@ static int hpt_dma_blacklisted(const struct ata_device *dev, char *modestr, | |||
160 | 161 | ||
161 | while (list[i] != NULL) { | 162 | while (list[i] != NULL) { |
162 | if (!strcmp(list[i], model_num)) { | 163 | if (!strcmp(list[i], model_num)) { |
163 | pr_warning(DRV_NAME ": %s is not supported for %s.\n", | 164 | pr_warn("%s is not supported for %s\n", |
164 | modestr, list[i]); | 165 | modestr, list[i]); |
165 | return 1; | 166 | return 1; |
166 | } | 167 | } |
167 | i++; | 168 | i++; |