summaryrefslogtreecommitdiff
path: root/drivers/ata/pata_hpt366.c
diff options
context:
space:
mode:
authorHannes Reinecke <hare@suse.de>2021-12-21 10:21:27 +0300
committerDamien Le Moal <damien.lemoal@opensource.wdc.com>2022-01-05 13:33:03 +0300
commitcbc59b8c20863cca43b8b9552cf409a2c8d1be7a (patch)
treeed5ed9462f91c20923eb4299e11d31baec8e88fd /drivers/ata/pata_hpt366.c
parent97b7925a5cb44dae4b9f0c8f1b22427521b1de8d (diff)
downloadlinux-cbc59b8c20863cca43b8b9552cf409a2c8d1be7a.tar.xz
ata: pata_hpt366: convert pr_warn() calls
Convert pr_warn() calls to ata_dev_warn() Signed-off-by: Hannes Reinecke <hare@suse.de> Signed-off-by: Damien Le Moal <damien.lemoal@opensource.wdc.com>
Diffstat (limited to 'drivers/ata/pata_hpt366.c')
-rw-r--r--drivers/ata/pata_hpt366.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/ata/pata_hpt366.c b/drivers/ata/pata_hpt366.c
index 06b7c4a9ec95..778c893f276b 100644
--- a/drivers/ata/pata_hpt366.c
+++ b/drivers/ata/pata_hpt366.c
@@ -14,9 +14,6 @@
* TODO
* Look into engine reset on timeout errors. Should not be required.
*/
-
-#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
-
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/pci.h>
@@ -183,7 +180,7 @@ static int hpt_dma_blacklisted(const struct ata_device *dev, char *modestr,
i = match_string(list, -1, model_num);
if (i >= 0) {
- pr_warn("%s is not supported for %s\n", modestr, list[i]);
+ ata_dev_warn(dev, "%s is not supported for %s\n", modestr, list[i]);
return 1;
}
return 0;