From: Hannes Reinecke Date: Tue, 21 Dec 2021 07:21:27 +0000 (+0100) Subject: ata: pata_hpt366: convert pr_warn() calls X-Git-Tag: v5.17-rc1~46^2~30 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=cbc59b8c20863cca43b8b9552cf409a2c8d1be7a;p=thirdparty%2Fkernel%2Flinux.git ata: pata_hpt366: convert pr_warn() calls Convert pr_warn() calls to ata_dev_warn() Signed-off-by: Hannes Reinecke Signed-off-by: Damien Le Moal --- diff --git a/drivers/ata/pata_hpt366.c b/drivers/ata/pata_hpt366.c index 06b7c4a9ec954..778c893f276bf 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 #include #include @@ -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;